Displaying 2 results from an estimated 2 matches for "get_reorder_imag".
Did you mean:
get_reorder_image
2006 Feb 18
6
Why doesn''t my "action" take action?
...is
first rendered. I feel like I should just "call" this from the index
page, perhaps is ruby brackets, but I''ve spent ours and nothing happens
until I do the form_remote_tag click and then the "replacement" partial
page appears.
What do I need to do to have "get_reorder_images" execute on first
rendering of html.
Eventually, I will put in logic or a new "action" so that some
parameters are passed with subsequent calls, but this first call has a
default mode.
Thanks,
Dave
--
Posted via http://www.ruby-forum.com/.
2006 Feb 18
5
Model methods and partial view templates
I have a method in a controller that invokes a
render :partial => ''some_partial_view''
In that view, I''m trying to access a method defined in a model, like
this;
<% for view in @an_array %>
<% local_var = view.some_method() %>
<% another_var = view.a_column_name %>
etc..
I am getting an undefined method error but the model is accessible