I'm trying to learn ruby ββon rails. I went through a tutorial, but I'm stuck.
He uses me in start_form_tagand end_form_tagaround the input form. However, when I access the page, I getundefined method 'start_form_tag' for #<ActionView::Base:0x2556020>
The tutorial explains that these two lines are translated into <form action="/book/create" method="post">and </form>. As such, I tried to put them instead. The form exited, but when I submitted the form, I get this error:ActionController::InvalidAuthenticityToken in BookController#create
So,
- What do I need to do to get start_form_tag to translate correctly?
- Does this cause an InvalidAuthenticityToken error?
source
share