OHHHH wait.. I forgot to tell you, if you're using jQuery, there are a few things you must change.
First: grab the jQuery library, you can download it at jquery.com
fourth: go into config/application.rb and add this line of code under class Application < Rails::Application
class Application < Rails::Application #### this line is already there
#### this ^ is the line to add, right below class Application < Rails::Application, like I have here
then once you have done that, go to your layout file: application.html.erb in app/views/layouts
Once you have done those steps, you're all set for jQuery. To test, the last post I wrote showed you how to grab those radio button values, to make sure jquery is working, copy and paste all that code into a view and give it a shot. It should most definitely work if you completed the steps above.
I knwo this sounds like a lot, but A LOT of people these days are using jQuery and it's really awesome, you should use it. Railscasts often uses jquery, and that's the source for a TON of knowledge for most people, you'll likely come across it soon if you haven't already.
Besides, once you do this once, you can save a rails app as a template with all this already done. Then each time you want to make a new app, you just copy your template app and rename it, takes less time than generating a new app!
Last edited by RailsRhino (2010-11-20 22:05:10)