so I have simple models with a title and like attributes.
I show it as a table on the song index page. I want to increase the number I liked when I click a link.
I have this, in my opinion, now:
<td> <%= link_to 'LIKE', :action => "update", :remote => true%> </td>
in my song_controller.rb I have:
def update @song = Song.find(params[:id]) @song.likes +=1
I get this error when clicking a link:
No route matches [GET] "/assets"
I know this is simple, someone, please help me understand what is happening here?
thanks
UPDATE !!!!!!! I put this in my application .rb config.assets.enabled = false
but I still get the following:
No route matches {:action=>"update", :remote=>true, :controller=>"songs"}
source share