Displaying 1 result from an estimated 1 matches for "set_eros_values".
2010 Apr 30
3
undefined method `call' for nil:NilClass
why would I be getting this error after submitting my form?
NoMethodError in EchantillonsController#create
undefined method `call'' for nil:NilClass
This is my create method in the controller:
def create
@echantillon = Echantillon.new(params[:echantillon])
@echantillon.set_eros_values
respond_to do |format|
if @echantillon.save
if params[:echantillon][:vignette].blank?
format.html { redirect_to(@echantillon) }
format.xml { render :xml => @echantillon, :status
=> :created, :location => @echantillon }
else...