heimdull wrote:
> I think the issue is that you have a general route to the checkout
> controller and then you have a map.checkout route that is after the
> map.resources :checkout route. so when you use checkout_path you will
> get the edit task and not the checkout "route" that you have setup...
>
> Try changing map.checkout to map.checkout-something-else and see if
> that fixes the issue...
>
>
>
> On Jun 17, 2:42�pm, Tyler Knappe <[email protected]>
I think the problem lies here:
def update
@lab = Lab.find(params[:id])
respond_to do |format|
if @lab.update_attributes(params[:lab])
flash[:notice] = 'Lab was successfully updated.'
format.html { redirect_to(@lab) }
format.xml { head :ok }
else
format.html { render :action => "edit" }
If an unsuccessful update occurs the edit action is called, I changed
this to another action and that action was called. However, what I
can't figure out is why this action is called from the Labs Controller,
not from the Checkout Controller, where the checkout is called. I have
an update action in the Checkout Controller..
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---