Sunday, June 6, 2010

[Rails] authenticity_token shows up in the url when page reloads

I'm pretty new to Ruby On Rails (and somewhat self-taught), so bear with
me if I'm asking something stupid. So whenever I push my download button
(which just uses send_file, if that's any help) it reloads the page,
without downloading, and it puts the authenticity_token in the url. This
all the button is:
<% form_remote_tag :url => { :action => 'download'} do %>
<%= submit_tag "Download" %>
<% end %>

Basically, it's just not working at all, and I would appreciate any sort
of help with the issue. Thanks in advance.
--
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate