Rails Log In Form HTML?
I have set up a 'blog' website with secure log-in and sign-up functionality. My question is where does rails hide the html mark-up for these as I want to add some styling? I don't want to style the comments form though, if they are the same source mark-up. I have checked all the 'view's and cannot find the code for the l开发者_StackOverflow中文版og-in/out form?
Devise is a Rails engine - which means that it stores all its controllers and views in the Gem bundle. However devise has a generator that will copy its views so that you can modify them:
$ rails generate devise:views
You could add to the CSS for your website. That will not alter the HTML of the login form, but the form is already optimized as it is (inputs, buttons & links).
If you do not want to edit other forms, you should look at the source code of that login form. It will probably has some unique ID or class you can use for styling.
精彩评论