Data is not passing from Form to controller actions

How to render the data from form to controller actions?

This is my controller:-

class ViewController < ApplicationController
def index

def new


Index Page:-

New Page:-


Find me in app/views/view/new.html.erb

Hello <%= @txt %>

<%= link_to 'index','index' %>

Error after filling text box and cliking the submit button:-

ActionController::InvalidAuthenticityToken in ViewController#new
RAILS_ROOT: D:/projectNetBean/validation

It looks like you are not passing the authenticity token

Are you using form_for in the view?

On Apr 9, 12:26 pm, Vaibhav Deshpande <rails-mailing-l…@andreas-

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs