This should be an easy one but I just cant find the answer! My Rail Forms generate a div that I want to get rid of
This is the div that rails generate for me
<div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="✓"/><input name="authenticity_token" type="hidden" value="Z6UAdFYt3v8d1lx4BNXq5td3OMJ223i+ruKM8Ldb+5s=" /></div>
I had a look to some previews questions that were suggesting I should use form_authenticity_token
Where and how in the code can I use form_authenticity_token instead?
What version of Rails are you using?
I don't know why you want to do this. If it's a CSS issue you can just be more specific. I've never needed to do this. However…
The way to do it in 3.0.9 would be making an initializer and adding this code: