Rails : of select_tags and options_from_collection_for_select

A bit difficult to get this information... Rails' helper when building select elements for a form is the well-known select_tag. If you are populating the options within a select form with data from your database through a model, you would use the options_from_collection_for_select helper. An example  is in fact quite straightforward: options_from_collection_for_select(@extensions, 'ext', 'name') Meaning if your … Continue reading Rails : of select_tags and options_from_collection_for_select

Newbie Post: Rendering javascript views in Rails

I've found the Rails method of "remote => 'true'" to be extremely useful. In most of my website designs, a user action (such as clicking a button), will generate a modal and prompt the user for further action. In both HTML frameworks I've used (bootstrap and foundation), the modals are triggered by javascript. This fits … Continue reading Newbie Post: Rendering javascript views in Rails