<%= simple_form_for(@user, :url => users_trial_signup_submit_path(@user)) do |f| %>
You're trying to render a devise form outside of a devise controller, so you don't have initialized resource
nor resource_name
variables.
Probably, you need to change your params in your controller too:
def trial_signup_submit
@user = User.create(params[:user])
end
Although I recommend to do something like that:
def trial_signup_submit
@user = User.new(params[:user])
if @user.save
redirect_to <wherever you want>, notice: <your message>
else
render :trial_signup
end
end
PS: I think you should change your actions to something like new_trial
and create_trial
, if you need something different to defaults new
and create
.