search for: pagecontroller

Displaying 11 results from an estimated 11 matches for "pagecontroller".

Did you mean: pagescontroller
2006 Aug 31
1
Need architectural help avoiding render :component
...need to hit the database in order to figure out how to route it. I have to figure out what type of page "my-calendar" maps to and ensure that joe has permission to view that page. As far as I can tell, it''s not possible to handle this in routes.rb, so I put it in a controller, PageController. Once the app determines what kind of controller is required, it needs to pass on the request to the appropriate controller (a CalendarController, BlogController, ToDoController, etc). It seems like the most straightforward way of doing this is to have the last line of PageController''s r...
2006 Feb 17
2
Last Resort Route...
Hey all, can''t find the answer to this through the powers of Google. How can I get a "catch-all" route for anything that doesn''t get mapped otherwise. So basically, the idea I want is to have something like: map.connect "*", :controller => "page", :action => "redirect" and call it good. I''ve tried overriding a couple of
2006 Jan 17
1
Rails too Active?
...ly passive.) If you look in the ActiveRecord controller internals, you''ll see exactly that. ActionController is also called that because it is that. Fowler describes different models for Controllers: One controller for the entire app (Front Controller), one controller for each page (PageController), or a twist on that, with a controller for each action - close to a page, but using a OO app model, instead of a page/template model (think PHP). Rails went with the last. ActionMailer and ActionWebService follow the paradigm of ActionController, and are hence named so accordingly. But why A...
2006 Apr 21
5
installing hieraki help
...nd it was a big mess. 1) upload_progress module needed to be installed 2) no test/development server configured in the config file so i had to add those 3) no log directory, had to add that 4) had to install 2 gems (ok fine) 5) once the server started, go to homepage and " NameError in Wiki/pageController#index uninitialized constant Node RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace This error occured while loading the following files: wiki/processor/instruction_set/node.rb" I didn''t find any documentation , help or otherwise anywhere. --...
2006 May 10
0
Ezra''s acl_system2 and flash not getting populated in functional tests
...s acl_system2 to protect certain actions in my controllers. I have written some functional tests to check for correct handling of redirects, flashes, etc. The flashes however only get populated on the first get action in any given test. Here is what I have so far: In the controller: class PageController < AC before_filter => :login_required access_control :DEFAULT => ''admin'' def index end ... protected def permission_denied flash[:message] = "You must log in as an administrator." redirect_to :controller => "account"...
2006 Mar 09
1
ActionMailer Question -- can''t find email templates
I have a PageController that displays a form. The form is just straight HTML, I only used the form helpers for the form tag as so: -- <%= form_tag({:action => :send_request}, {:method=>:post, :name=>''childsplay''})%> -- In my page controller I have this: -- def send_request email =...
2006 Mar 21
0
theme_generator custom application views
I''ve installed the theme generator but am having trouble getting custom application views working. Let''s say I define a action called ''test'' in the controller. class PageController < ApplicationController theme ''bluebird'' layout ''default'' def test end end Now if I define a rhtml page called ''test'' in: themes/bluebird/views/page/test.rhtml it gives a error saying ''The Template is missing'...
2007 Feb 15
0
My domain name is appearing the :id
On my site my domain details (live/)is appearing in the parameters call: Processing PageController#view (for 217.204.65.130 at 2007-02-15 11:12:48) [GET] Session ID: 00d981dc7904b6d78605f1868f41e78b Parameters: {"action"=>"view", "id"=>"live/home.html", "controller"=>"page"} Causing and error finind the file. How can I ge...
2010 Feb 06
4
500 Internal Error
I have on ubuntu a digital library application Kete which gives in the log/production.log: Please help, thnx. /!\ FAILSAFE /!\ Fri Feb 05 19:05:08 +0200 2010 Status: 500 Internal Server Error No connection to server (localhost:11211 DEAD (Errno::ECONNREFUSED: Connection refused - connect(2)), will retry at Fri Feb 05 19:05:38 +0200 2010)
2011 Jul 08
0
Wine release 1.3.24
The Wine development release 1.3.24 is now available. What's new in this release (see below for details): - Various DirectInput improvements. - Support for line breaking in Uniscribe. - More UI elements in builtin Shell Explorer. - Some more D3DX9 functions. - Improved support for shell known folders. - Various bug fixes. The source is available from the following locations:
2006 Mar 28
74
Is this an elaborate hoax/troll?
I sure hope so: http://duckdown.blogspot.com/2006/03/additional-thoughts-on-why-ruby-isnt.html Seems like it''s getting genuine rebuttals, though. It''s actually kind of amusing.