Of course there's an even easier way of doing it.  See "Automatic
redirection" in

  http://cookbook.hobocentral.net/manual/controllers

Your view can even specify where to go by adding <after-submit> to the
form.  Very cool.



On Wed, Mar 11, 2009 at 5:09 PM, Scott Bronson <[email protected]> wrote:
> First, some Hobo terminology
>
> SCREEN1 is the index page
> SCREEN 2 is the edit page
> SCREEN 3 is the show page
>
> If you want the new/edit pages to redirect to the index page instead
> of the show page, just put this in your controller:
>
> def create
>  hobo_create do
>    redirect_to Task if valid?
>  end
> end
>
> def update
>  hobo_update do
>    redirect_to Task if valid?
>  end
> end
>
>
>
> On Mon, Mar 9, 2009 at 12:54 AM, Shaz <[email protected]> wrote:
>>
>> Currently when a maintenance screen is created, the sequence is as
>> follows
>>
>> e,g,
>>
>> SCREEN 1
>>
>> Tasks
>>
>> There is 1 Task
>>
>> New Task
>>
>> Task 2
>>
>> if you click on New Task you goto SCREEN 2
>>
>> SCREEN 2
>> You enter the Task and a Create Task button is displayed,
>> On clicking Create Task button it takes you to SCREEN 3
>>
>> SCREEN 3
>>
>> This screen gives you view mode of Task details, with a link to edit
>> the Task,
>>
>> is it possible when clicking of Create Task button it takes you to
>> SCREEN 1
>> instead of SCREEN 3, using javascript
>>
>> If you look Agility example it also works like this
>>
>> Thanks Shaz
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to