Ruby on Rails Tuesday, December 14, 2010

Hey, i had the same error and i used the same jquery script as you have.

The quick solution is change the post request to get. It are normal
links anyway. Dont know why you need post for that.

function ajaxLinks(){
$('a.get').getWithAjax();
}

<%= link_to "Save", {:controller => 'budgets', :action => 'validate',
:id => @budget}, :class => "button get" %>

Good luck!

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment