开发者

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?

Rails Log In Form HTML?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜