Hi all, I am new to this place and ruby on rails as well.
I am developing a web application where I have to create a form which
displays the checkboxes. The names of these checkboxes have to be
fetched from a database. Can some one help me out of this ?
currently i am using this in my view, which makes it pretty hard
coded…can u suggest something else in place of it(which dynamically
fetches the checkbox names from a database)
Also, I want to use two databases(one for fetching the checkbox names,
and the other is for my application). Do I need to include some extra
code for it?
currently i am using this in my view, which makes it pretty hard
coded…can u suggest something else in place of it(which dynamically
fetches the checkbox names from a database)
Also, I want to use two databases(one for fetching the checkbox names,
and the other is for my application). Do I need to include some extra
code for it?
The doc for ActiveRecord::Base has a section titled
“Connection to multiple databases in different models”