erb
Rails - Inline CSS
So I\'m making a user profile page for my app. However I want the user\'s avatar to have an inset white box-shadow. Therefore using <img /> isn\'t an option since it doesn\'t开发者_StackOverflow[详细]
2023-03-24 21:40 分类:问答Sprockets not properly porcessing erb in js file
i have a simple gmaps V3 api call to produce a static map based on a lat/lon in the location record. the file reisdes in the asset/javascripts dir, and is named location_static_map.erb.js[详细]
2023-03-24 02:44 分类:问答Rails mixing templating languages
I\'m working with a large project where the templates are written in erb. We\'re getting more and more into client side rendering of parts of the project and we have lots of exact duplicates in mustac[详细]
2023-03-22 23:59 分类:问答Rails ERB: radio_button_tag not generated
I have an ERB that only contains this line: hello <% radio_button_tag \"a\", \"b\" %> world PROBLEM: Output is only h开发者_开发百科elloworld. No radio button is generated.[详细]
2023-03-22 07:23 分类:问答Mongrel: how to process erb in .rhtml file
I am trying to serve up static content for some web development, with a few lines of erb to simulate what the real server will do. I already did this with WEBrick here: http://ceronio.net/2011/06/nice[详细]
2023-03-22 00:18 分类:问答Passing parameters to erb view
I\'m trying to pass parameters to an erb view using Ruby and Sinatra. For example, I can do: get \'/hello/:name\' do[详细]
2023-03-21 07:57 分类:问答Include blank for first item in select list in options_for_select tag
I tried :include_blank => true, but it didn\'开发者_运维知识库t work. <select> <%= options_for_select Model.all.collect{|mt| [mt.name, mt.id]} %>[详细]
2023-03-20 20:11 分类:问答CSS not showing up with ERB
I\'ve just hosted something on Heroku, and whenever I opened the app it worked just fine with the css being linked as such:[详细]
2023-03-19 07:37 分类:问答Rails: How to read the value entered by the user in a text_field_tag input?
I have a form with <%= text_field_tag \"mykey\" %>. The user enters myvalue and submits. How to get this value when the POST request hits the Rails server?[详细]
2023-03-19 01:29 分类:问答How to merge multiple partial templates into one file?
I\'m using Ruby on Rails 3 to create my web app. I don\'t want to create a t开发者_开发技巧emplate file for each tiny partial template so I tried to merge them into one file using content_for method b[详细]
2023-03-19 00:48 分类:问答