On Nov 18, 1:00 pm, icke <[email protected]> wrote:
>
>   def create
>     @quote_ref = QuoteRef.new(params[:quote_ref])
>     if @quote_ref.save
>       redirect_to url_for(:controller => 'quote', :action =>
> 'update', :id => @quote_ref.quote_id
>     else
>       render :controller  => 'quote', :action => 'new'
>     end
>   end
>
That is invalid syntax - you never close the  ( that you opened after
url_for. The reason you get this in staging but not in development is
presumably that your staging environment is similar to production, ie
rails is set to preload all your source at load time, whereas in
development that file would not be loaded (and thus the syntax error
not reported) until it needed to be.

Fred

--

You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.


Reply via email to