Welcome to the list
> - will customers/4/small_projects work?
It will if there's a :small_projects association on customers (you
could make one)
(Or, you could make your projects controller know about :type (and
override find/new_resource methods), and route :small_projects to
:projects, :type => 'small_project')
> - is customer_small_projects_url(resource) the correct notation?
It depends on your routes.rb,
This is just rails though, nothing to do with RC, resource is just a
method pointing to (in this case) a customer
> How do I use will_paginate with r_c - is it at all possible?
It should be - I have
Just change find_resources to something like this:
def find_resources
resource_service.paginate(options)
end
> ps. is the public lighthouse "draft" still up for grabs ( or will
> github suffice?)
Issue tracker (for bugs and patches, use this group for this sort of
request) is now at lighthouse
http://ianwhite.lighthouseapp.com/
Cheers,
Ian
--
Argument from Design--We build web applications
Western House 239 Western Road Sheffield S10 1LE UK
Mobile: +44 (0)797 4678409 | Office: +44 (0)114 2667712
<http://www.ardes.com/> | <http://blog.ardes.com/ian>
I don;t really know much about pagination_find, never used it.
the will_paginate answer might help you out though - basically treat
resource_service like a class or association
> ps. should you ever find yourself "stranded" in Jutland or Denmark at
> all, please give me a call - I would like to help you to a pint or two
> of some of our danish brew (read: beer) :)
Will do - always up for a beer
thanks for your birth advice/musings
If you have SmallProjectsController < ProjectsController
then you should get the inherited method - is that not happening?
2008/5/2 walt <wal...@diechmann.net>:
--
You may have caught a bug (the inheritance issue) I check the spec
suite and make sure
Do you have the latest rc and egde? Or are you on 2.0.2
Cheers,
Ian
2008/5/2 walt <wal...@diechmann.net>:
--
But a workaround is this (till it gets fixed)
(in subclassed controller, assuming that methods 'new', and 'create'
are defined in superclass, and you want them in the subclass)
class SmallProjectsController < ProjectsController
resources_controller_for ... , :except => [:new, :create]
end
Let me know how it works out
Cheers,
Ian
2008/5/2 walt <wal...@diechmann.net>:
>
>
--
I was being a bit brain dead last night - what you want is this:
(in the subclass)
resources_controller_for ... :actions => false
So, hopefully :actions => false will have solved your problem, sorry
for leading you down the garden path with me previous post.
The next question is, is this behaviour correct, and least surprising?
At the very least the docs should probably be made clearer
Cheers,
Ian
2008/5/3 Ian White <ian.w...@gmail.com>:
--