so I tried that and now I get an RJS error in a popup window it states
[object error]
Here’s what I changed and tried…I created a new partial called
_new_name that is as follows:
<%= new.name %> <%= link_to "delete", {
:controller => 'meal_names', :action => 'destroy', :id => new.id},
:confirm => "are you sure you want to delete #{new.name}?"
%>
and I changed my controller code to
page.insert_html :bottom, :partial => ‘new_name’, :locals => { :new =>
@name}
what am i missing here?
Try telling it where to insert the html
page.insert_html :bottom, ‘meal_names’, :partial => ‘new_name’, :locals
=> { :new => @name}
Not sure what that error message is all about.
On Sunday, April 09, 2006, at 9:19 PM, Curtis E. wrote:
:controller => ‘meal_names’, :action => ‘destroy’, :id => new.id},
=> @name}
what am i missing here?
Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails
_Kevin
That did the trick! I guess that would make sense, telling it where to
stick the update and all. Cool beans. Thanks again for taking the time
out and setting my head straight, I think i had just been looking at it
too long.
Kevin O. wrote:
Try telling it where to insert the html
page.insert_html :bottom, ‘meal_names’, :partial => ‘new_name’, :locals
=> { :new => @name}
Not sure what that error message is all about.
On Sunday, April 09, 2006, at 9:19 PM, Curtis E. wrote:
:controller => ‘meal_names’, :action => ‘destroy’, :id => new.id},
=> @name}
what am i missing here?
Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails
_Kevin