the front controller doesn't have an id parameter passed to it (usually) and it isn't associated with a particular model and index usually isn't expecting a particular item. You might want to just change your route to have the '/' route point to the controller/action you want. Otherwise, you'll need to find a way to load a default project if no id is passed, load a particular one if an id is passed and adjust your page to show the table-plus
On Apr 23, 9:25 am, Pete <[email protected]> wrote: > I want to create a <table-plus> searchable and sortable table, as in > the Agility tutorial, > > But I want to create this table on the index page, so the index method > would be defined in the front_controller. > > The method used in the tutorial doesn't seem to explain how everything > works, and I can't seem to get this functionality on the home screen, > I'm seeing many errors depending on how the method is organised, such > as > 'undefined method - find_instance', and parse_sort_params etc > > (from front_controller) > def index > @project = find_instance > > @stories = > @project.stories.apply_scopes(:search =>[params[:search], > :title], > > :order_by => parse_sort_param(:title, :status)) > end > > This is exactly as in the tutorial, but will not work when everything > is defined for the front 'index' page. > > I'm thinking there must be something wrong in the routes, but any > suggestions would be very welcome!! > > -- > 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 > athttp://groups.google.com/group/hobousers?hl=en. -- 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.
