Hi,

On Fri, Feb 5, 2016, at 14:49, fugee ohu wrote:
> 
>  The controller 
> https://github.com/sudharti/socify/blob/master/app/controllers/likes_controller.rb
>  
> doesn't respond with any rendering I don't wanna redirect I just wanna 
> change the like button to the  unlike button so how would i do that
> 

It's already doing exactly that. Check the respond_to[1] line at the top
of the controller and the corresponding views[2].

[1]
http://api.rubyonrails.org/classes/ActionController/MimeResponds.html#method-i-respond_to

[2] https://github.com/sudharti/socify/blob/master/app/views/likes/

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/1454654010.896151.512663058.6A63491A%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to