hi,

i have a table of objects and in my controller i have a dropfiles
action. when i add

link_to 'Drop files', {:action => 'dropfiles', :id => examination} %>

it says "406 Not Acceptable"

i just want to call the action and i don't want to load another
template/view. can i do this without js/ajax?

--
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.

Search Discussions

  • Aaron Schmitz at Mar 30, 2012 at 8:34 am
    i just did

    "respond_to examinations_path"

    instead of

    "respond_to do |format|
    format.html
    format.json {render :json => @examination}
    end"

    --
    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.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedMar 30, '12 at 8:07a
activeMar 30, '12 at 8:34a
posts2
users1
websiterubyonrails.org
irc#RubyOnRails

1 user in discussion

Aaron Schmitz: 2 posts

People

Translate

site design / logo © 2021 Grokbase