search for: rubyrookie

Displaying 3 results from an estimated 3 matches for "rubyrookie".

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
2012 Nov 18
0
How mix jquery based ui packages and ruby on rails
I am trying to use jqx ui that is based on jquqery I have following questions 1. How do I generate the right id and name for the element without setting the element name and id in the format model name [attribute] ? Example <%= f.text_field :country_id %> generates sets the element id and name to bank[country_id] 2.how do i set the form element attributes like action ? Do i just use