Displaying 3 results from an estimated 3 matches for "get_reordered_images".
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
2006 Feb 18
6
Why doesn''t my "action" take action?
...ackground-color:#eee;">
<%= render(:partial => ''form'') %></div>
...and the following in my _form.rhtml
<%= form_remote_tag(:update => "images_div_main",
:url => { :action =>
''get_reordered_images''}) %>
<label for="num_images_requested">How many images?</label>
<%= text_field_tag :numreq %>
<%= submit_tag "Click to get images" %>
<%= end_form_tag %>
...and of course, this im my Mycontroller_control...
2006 Feb 16
1
Newby: Getting "unitialized constant SockServ" -- help
...SockServ somewhere or is this error message really indicating
something else?
uninitialized constant SockServ
C:/rails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:200:in
`const_missing''
#{RAILS_ROOT}/app/controllers/mindreadr_controller.rb:15:in
`get_reordered_images''
This error occured while loading the following files:
sock_serv.rb
This is in my ApplicationController (partila)
def get_reordered_images
# eventually send in image IDs, for now, send in nothing, just get
images
@response = SockServ.open_send_receive
# now unwr...