Here’s what i’m trying to do:
Have 3 dropdowns up the top of a page, being: year, month, department,
and group. Also a button underneath that called refresh.
When you click refresh, it finds the 1 row of data from the database for
that year/month/dept/group and populates the fields into a set of
Then you can edit what is in those textboxes, and click a ‘save’ button,
and it’ll update the record back into the database.
Here’s what i’m struggling getting to work:
How do you get the dropdowns up the top to keep their values after the
How do you access the values in those dropdowns from the controller?
How do you get the controller to perform different actions when they
click ‘refresh’ versus clicking ‘save’ ?
I’m a bit of a beginner, but i believe rails stands a good chance of
revolutionising my productivity, eventually when i get the hang of it! I
already know how to do all this in asp.net but i’m keen to learn rails.