Im developing a simple extension to Radiant. I created a controller, using the generator available, like
class NewsletterController < ApplicationController
no_login_required
skip_before_filter :verify_authenticity_token
def send
@news = Newsletter.find_or_create_by_email(params[:email])
@news.save
flash[:notice] = "Your e-mail was added to our newsletter"
redirect_back_or_default("/")
end
end
My routes are ok, so i tried to access http://localhost:3000/newsletter/[email protected] but didnt work. Im received the error "wrong number of arguments (1 for 0)". Am I missing something here related with Radiant Controllers?