Ruby on Rails Thursday, February 4, 2016



On Wednesday, February 3, 2016 at 11:42:08 PM UTC-5, nanaya wrote:
Hi,

On Thu, Feb 4, 2016, at 04:53, fugee ohu wrote:
> >
> > https://github.com/sudharti/socify/blob/master/app/views/shared/_actions.html.erb
> >
>
> Yikes, what does this mean? <%= render 'likes/form', likeable: resource
> %>
>


it means you need to read documentation:

http://api.rubyonrails.org/classes/ActionView/PartialRenderer.html

there's a "respond to js" at the top of the likes_controller  how's that supposed to work? in your view is it acceptable to redirect to request.referrer or do i wanna modify the dom with javascript to change between like and unlike being displayed

--
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+unsubscribe@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/af7e1560-4944-4851-acab-8747317b98bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment