Re: [Rails] My rails app display the authenticity token in the browser url

2019-03-21 Thread Rob Zolkos
Looks like you are not redirecting the user to another page when the contact info has been sent. Do you want to redirect them to the home (or another) page and show a "Your message has been sent" alert? replace flash.now[:error] = nil with redirect_to root_path, notice: 'Your message has been

[Rails] My rails app display the authenticity token in the browser url

2019-03-21 Thread Don Bottles
My rails app display the authenticity token in the browser url, when i click on send in my contact form, how do i make it not shown?? here is it => http://localhost:3000/contacts/new?utf8=✓_token=JidgUrJ2OXU%2Fy482tx8%2Bua0ZhqRwHSkXme9