srinivasan sakthivel wrote:
> hi
>
>
> Give me ur controller code.
>
> thanks
> seenu
>
> On Thu, Oct 22, 2009 at 1:54 PM, Ralu rm
def update
@ticket = Ticket.find(params[:id])
if @ticket.update_attributes(params[:ticket])
redirect_to :action => 'list'
else
redirect_to :action => 'edit'
end
end
def resolve
@ticket = Ticket.find(params[:id])
@category = Category.find(params[:id2])
@urgency = Urgency.find(params[:id3])
@resolve = Resolve.new
end
def resolve_create
@resolve = Resolve.new(params[:resolve1])
if @resolve.save
redirect_to :action => 'list'
else
redirect_to :action => 'resolve'
end
end
end
this is the part of controller code...
--
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
-~----------~----~----~----~------~----~------~--~---