Ruby on Rails Tuesday, April 10, 2018

I'm trying to use Fraola gem For the textarea field i left it as it was and just gave it an id The docs said create a div and give it the textarea or otherwise id in this case would be 'post_body' The way I have it set up there's no element to be filled by js The docs say to just use a div but then how would the input be applied to the field if i just used a div

<%= f.text_area :body, placeholder: t(:write_something_here, scope: 'blogit.posts'), id: "post_body" %>


--
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/9cffd3be-aa43-4fd0-a67d-12c804ce7a16%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment