search for: form_helper2

Displaying 1 result from an estimated 1 matches for "form_helper2".

Did you mean: form_helper
2007 Jul 14
2
Using Helpers inside a Controller
..., there will be an asynchronous javascript request to load additional resources such as html forms and other data. The controller which handles the request will collect the resources and send them back in json format. def get_resources data=Hash.new data[:form1]=form_helper1() data[:form2]=form_helper2() ...etc.... render :text data.to_json, :layout=>false end This works great if I''m loading up the data hash with pure data, but I can''t collect html elements such as forms that require helpers because I can''t call the helper inside of the controller. I searched...