erb
why is #comment syntax not allowed in erb's <%= %>?
I\'m 开发者_运维百科using Ruby on Rails 3. I had tried to add #comment in <%= %>, and it turned out that it\'s not valid...and error raised... My code is:[详细]
2023-02-25 03:45 分类:问答Can you get ERB to properly indent when rendered?
I have several partials that I\'m including in my Rails application.html.erb f开发者_开发问答ile, but the resulting HTML doesn\'t preserve my indenting (formatting). I\'ve been told that the first lin[详细]
2023-02-25 03:40 分类:问答Calculating rowspan in an HTML table of nested DataMapper resources
I have a legacy database that sits behind a really crappy PHP app. The web app is causing all sorts of problems with the database, and I just need a quick-and-dirty way of representing what is stored[详细]
2023-02-25 02:38 分类:问答"#{ }" notation vs. erb notation
What are the differences between the notation: \" some text #{some_ruby_code} some text #{some_more_ruby_code}[详细]
2023-02-24 05:34 分类:问答Integrating HAML with RSPEC
I had 11 or so Rspec tests running sat, until I converted my project to HAML. Then when I ran my tests, I got errors such as:[详细]
2023-02-24 01:28 分类:问答In Ruby, how can I inspect the class generated by a .html.erb template?
When doing J2EE development, I find it handy for debugging to view the Java classes that are generated by the JSP compiler.[详细]
2023-02-23 07:32 分类:问答rails: yml merging
Say I have a yml file for my rails configuration... settings.yml defaults: &defaults interceptor_email: robot@wearemanalive.com[详细]
2023-02-20 18:19 分类:问答What's the difference between <% code %> and <%= code %> in Rails erb?
There seems to be a difference between the two, Though I can\'t tell what exactly. <% code %>开发者_如何学运维[详细]
2023-02-17 16:11 分类:问答Rails 2.3.8 - select box causing parse error when box contains more than one option
The app in question utilizes jQuery to do ajax requests in order to populate dependent select boxes. My controller action responds_to :js, and in the .js.erb file I have:[详细]
2023-02-16 19:45 分类:问答Rails, has_many list of checkboxes--form field name?
I\'ve got a user model object, assume class User < ActiveRecord::Base has_many :permissions end and class Permission > ActiveRecord::Base[详细]
2023-02-16 14:14 分类:问答