On Thu, Feb 4, 2010 at 3:22 PM, Jonathan Ferguson <[email protected]>wrote:

> Is there are reason one or more correct than the other?


If you use the rewrite mechanism, you've got the flexibility to change the
rewrite rules so that if you want something else on the /index page, it's
simple logic (a guard in the partial function) to enable/disable the
rewrite.


>
> Is it style or something else ?
>
> Cheers
>
> Jono
>
> On 5 February 2010 10:01, David Pollak <[email protected]>wrote:
>
>>
>>
>> On Thu, Feb 4, 2010 at 2:58 PM, Naftoli Gugenheim 
>> <[email protected]>wrote:
>>
>>> What does "wasn't able to" mean?
>>> Did you write
>>> override lazy val listPath = List("index")
>>>
>>
>> This is the wrong answer.  Jeppe gave the correct answer.
>>
>>
>>> ?
>>>
>>> -------------------------------------
>>> Jonathan Ferguson<[email protected]> wrote:
>>>
>>> I wasn't able to override listPath, I"ll have a bit more of a play to
>>> make
>>> sure I'm not doing anything to silly; trying to get /crudify/path to  / .
>>> Rewrite worked wonderfully.
>>>
>>> Cheers
>>> Jono
>>>
>>> On 5 February 2010 04:45, Jeppe Nejsum Madsen <[email protected]> wrote:
>>>
>>> > Naftoli Gugenheim <[email protected]> writes:
>>> >
>>> > > It's not overridable?
>>> >
>>> > Actually, I think it is :-)
>>> >
>>> > You might be able to just
>>> >
>>> > override lazy val listPath = Nil
>>> >
>>> > /Jeppe
>>> >
>>> > >
>>> > > -------------------------------------
>>> > > Jeppe Nejsum Madsen<[email protected]> wrote:
>>> > >
>>> > > Jonathan Ferguson <[email protected]> writes:
>>> > >
>>> > >> I would like to have the list view of one of my model objects as my
>>> home
>>> > >> page.
>>> > >>
>>> > >> Can this done with out having the home page redirect to
>>> /mymodel/list ?
>>> > >
>>> > > I don't think you can change the native URL of CRUDify list, but you
>>> > > could add a rewrite (not redirect). See
>>> > >
>>> > >
>>> >
>>> http://blog.getintheloop.eu/2009/5/3/url-rewriting-with-the-lift-framework
>>> > >
>>> > > /Jeppe
>>> > >
>>> > > --
>>> > > You received this message because you are subscribed to the Google
>>> Groups
>>> > "Lift" group.
>>> > > To post to this group, send email to [email protected].
>>> > > To unsubscribe from this group, send email to
>>> > [email protected]<liftweb%[email protected]>
>>> <liftweb%[email protected]<liftweb%[email protected]>
>>> >
>>> > .
>>> > > For more options, visit this group at
>>> > http://groups.google.com/group/liftweb?hl=en.
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> Groups
>>> > "Lift" group.
>>> > To post to this group, send email to [email protected].
>>> > To unsubscribe from this group, send email to
>>> > [email protected]<liftweb%[email protected]>
>>> <liftweb%[email protected]<liftweb%[email protected]>
>>> >
>>> > .
>>> > For more options, visit this group at
>>> > http://groups.google.com/group/liftweb?hl=en.
>>> >
>>> >
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Lift" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected]<liftweb%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/liftweb?hl=en.
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Lift" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected]<liftweb%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/liftweb?hl=en.
>>>
>>>
>>
>>
>> --
>> Lift, the simply functional web framework http://liftweb.net
>> Beginning Scala http://www.apress.com/book/view/1430219890
>> Follow me: http://twitter.com/dpp
>> Surf the harmonics
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Lift" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<liftweb%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/liftweb?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<liftweb%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

-- 
You received this message because you are subscribed to the Google Groups 
"Lift" 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/liftweb?hl=en.

Reply via email to