If I empty the class and just leave class
Code Ruby:
ArgumentsController < ApplicationController
end
Code:
SyntaxError in ArgumentsController#create C:/Documents and Settings/Jaap/BitNami RubyStack projects/debate/app/controllers/arguments_controller.rb:2: syntax error, unexpected kEND, expecting $end
Keeping in mind there is no create method, If I add one so the controller looks like this
Code Ruby:
class ArgumentsController < ApplicationController
def create
@argument = Argument.create!(params[:id])
flash[:notice] = "Argument created"
redirect_to :back
end
end
Then I receive pretty much the same error
Code:
SyntaxError in ArgumentsController#create C:/Documents and Settings/Jaap/BitNami RubyStack projects/debate/app/controllers/arguments_controller.rb:10: syntax error, unexpected kEND, expecting $end
Bookmarks