For a Rails 3.1 app, some of my site wide JavaScript is only included when certain real time,开发者_运维百科 instance specific conditions are met. This means I can\'t put it in the new asset pipeline\
I am writing a Ruby script that will generate a large flat HTML menu for my website, I could generate this menu on the fly each time a page loads, but I think doing so is a waste of resources, especia
Localization of the Rails3 ERB form for my user_info model works for \"explanation\" but not for \"familyname\":
im following the tutorial on http://ruby.railstutorial.org/ and im on chapter 10. ive noticed after i do a .each method block it leaves a hash of all the items in the block. why is it doing this? its
When I submit a Photo to a Rails 3.0 photo gallery site. In addition to being able to upload the file, select Album from a drop down list, I need to be able to pass along a list of comma delimited tag
http://www.ruby-doc.org/stdlib/libdoc/erb/rdoc/classes/ERB.html lists a set of Recognized Tags - however, this list seems incomplete; for one thing it\'s missing the dash variant (<%- ... -%>, w
I have a legacy Ruby command line tool that uses (user supplied) ERB templates to format data.I am required to rewrite this tool in Java but I need to avoid having everyone rewrite their ERB templates
Here\'s my sinatra code: get \'/\' do foo = \'not bar\' erb :index end My layout.erb <html> <head></head>
This seems like it should be easy, but I can\'t figure out a way to do it. Essentially I want to load (in ERB, from a collection fetched via Rails) an HTML table with cells such that the first row has
Im new to RoR/Ruby and i cant seem to get the simplest thing to work. (trust me, ive search google and reread docs, i dont know what wrong)