JonathanSimmons
unread,Feb 21, 2012, 12:09:21 PM2/21/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Devise
So I'm using my own devise views. But I can't for the life of me work
out how to get the registrations or session for to acknowledge a class
i'm trying to put on it.
Basically the form defaults as
<%= form_for(resource, :as => resource_name, :url =>
registration_path(resource_name)) do |f| %>
I simply want to add a class using class: 'newClass' (or :class =>
'newClass' for older syntax)
<%= form_for(resource, :as => resource_name, :url =>
registration_path(resource_name), :class => 'newClass') do |f| %>
but this doesn't work the form still loads with just user_new as the
class, and newClass is nowhere to be found.
Anyone know how I can override this.
For those curious I'm using bootstrap css and I'm trying to add
the .form-inline class to the sign in form save having to rewrite the
form elements css. I can get around this obviously but am more curious
why devise won't let me override the css class.