Displaying 2 results from an estimated 2 matches for "project_help".
Did you mean:
project_helper
2006 Aug 01
3
paginate, search, sort with ajax problem
...The link_to_remote defined in
the helper is pointing to the wrong url.
I have set up things like so:
defined a search method in de project_controller located in
apps/admin/project. In de tutorial the method is called list. defined in
the item_controller
I copy and paste the helper methodes to project_helper in the folder
helpers/admin/project_helper
The files that create the view are located in views/admin/project
Problem is that the helper method pagination_links_remote and
sort_link_helper crate a link like the folowing:
http://localhost:3001/admin/admin/project/search?query=we&sort=n...
2006 Apr 23
5
Controllers in folders and helper scope in Rails >1.0
...s:
class ProjectController < ApplicationController
layout "user"
def index
...
end
Those controllers make use of helpers, and again, there are global
ones (used by both by users and admins), and special ones for admins.
So it looks like this:
/app/helpers/admin/project_helper.rb
/app/helpers/admin/...
/app/helpers/project_helper.rb
/app/helpers/...
The admin helper contains properly scoped content:
module Admin::ProjectHelper
...
end
and normal helper has also:
module ProjectHelper
...
end
It is important, that admin-scope controllers are also accessing a...