SMS verification

I am working on creating SMS confirmation for an application and found a RubySource tutorial here: http://rubysource.com/adding-sms-capabilities-to-your-rails-app/ .

I am new to Rails and can't figure out how to create a view file for # new users, what it says is what I need to do in applications / views / users.

I would like to help.

+4
source share
1 answer

The presentation file is nothing special; it is a plain text file with a far-fetched extension. In this case, your file name should be new.html.erb in the reference location. You can simply make it an empty text file and put your code in it.

The file name is displayed by convention - the first part (new) is the action, the second part is the type that will display (html), and the third part is the rendering mechanism that is used (erb).

+2
source

Source: https://habr.com/ru/post/1439281/


All Articles