Displaying 2 results from an estimated 2 matches for "asajn".
Did you mean:
asaj
2012 Dec 16
3
Running code in another controller action
I am doing a partial render in the view from one controller. Here is the
code -> <%= render :template => ''restaurants/new'' %>. I want the other
controller new action code to do it. Is there a way to call an action in
another controller ? I don''t want to duplicate the same code in two
controllers.
--
You received this message because you are
2012 Nov 17
2
Help needed for error in foreign key validation
I have two models bank and country. User should only associate a Bank with
a country id present in the country table and I put validates presence of
country to enforce it but i get error mysql2::Error: Unknown column
''countries.bank_id'' in ''where clause'': SELECT `countries`.* FROM
`countries` WHERE `countries`.`bank_id` = 17 LIMIT 1 when updating the bank