similar to: routing: controllers ''user'' and ''user/blogs'' not possible?

Displaying 20 results from an estimated 40000 matches similar to: "routing: controllers ''user'' and ''user/blogs'' not possible?"

2008 Jul 22
0
Routes dependent on subdomain
Hi, I''m having little problem getting my idea to work, would be very thankful if you could help me. I have one Ruby on Rails application sitting on server, and multiple subdomains, pointing to the same server/app. For example: mainserver.com user1.mainserver.com user2.mainserver.com I want to have exactly the same app and exactly the same routes on all, except that I want to map root
2008 May 04
5
simple Routing Error
Routing Error No route matches "/user/register" with {:method=>:get} The URL is http://localhost:3000/user/register Here is app/views/user/register.rhtml <h2>Register</h2> <% form_for :user do |form| %> <fieldset> <legend>Enter Your Details</legend> <div class="form_row"> <label
2006 Aug 04
1
route error with controllers in a module, should just work
This is ALL I have added to my routes.rb map.connect ''admin'', :controller => ''/admin/welcome'' I have found plenty of examples saying this is correct if you have a WelcomeController in the Admin module, which I do :) But now webrick won''t even start ??? Look at those 4 colons ::::, what is that about ? help ! => Booting WEBrick...
2010 Oct 13
2
Routing Error
my register.html.erb file is : <% form_for :user do |form| %> <p><br /> <fieldset> <legend>Enter Your Detail</legend> Screen Name <input type="text" name="screen_name" id="screen_name" size="20" maxlength="40"/> </p> <p> Email <input type="text"
2012 Apr 02
0
uninitialized constant UserController
Rails 3.1.3 I am trying to create an administrator page. ''User'' table has a field, admin:boolean, then user having ''admin=true'' can only access it, as you can imagine. But accessing http://localhost:3000/admin/user gives an error, uninitialized constant UserController I have ''controllers/admin/admin_application_controller.rb'' class
2006 Aug 08
2
"include DRbUndumped" error
Hi, I am getting my hands on trying the cool BackgrounDrb plugin. Following various discussions and suggestsion, I included "include DRbUndumped" in my ActiveRecord model. However, the following exception occurs after I tried this and hit the page that uses this model. Does anyone know why this is so? Is it possible that an object cannot be DRbUndumped (that would mean, we
2007 Mar 31
0
routing problem with controllers in other dirs
Hi all I have a problem with mapping url to controller which is deeper in controller directory (not root directory). I wanted to move acts_as_authenticated account_controller deeper to directory (let''s call it Foo) and route it as /Foo/Account, but i always seem to get exception that no route matched my request file structure: /app +- /controllers +- /Foo +-
2006 Jan 07
3
user engine question
I''ve created an array of hashes in UserController#initialize to describe a menu: @menu_array = [ {:menu => ''home'', :controller => ''home'', :action => ''send_home''}, {:menu => ''user list'', :action => ''list''}, {:menu => ''login'', :controller =>
2010 Aug 15
0
Singular resources namespaced by its slug (Routing)
Hi, I have the followed Rails 3 routes: Hello::Application.routes.draw do resources :blogs do resources :articles do resources :comments end end end By raking them, we can find (for instance): GET /blogs/:blog_id/articles(.:format) {:action=>"index", :controller=>"articles"} Because every routes begin with the
2006 May 05
2
newbie ruby string match question
All, I want to know in the Application.rb controller if I''m on the login screen. When I''m on the page I care about the controller variable is "#<ActiveRbac::UserController:0x408b3d6c>" So I want something like: if controller contains ActiveRbac::UserController What is the right syntax for the above? Thanks Greg -- Greg Freemyer The Norcross Group Forensics
2012 Jun 11
0
Using AuthLogic
Hello, I''m trying to use the authlogic to make my login in my app. The problem is when I change my user model. user model: class User < ActiveRecord::Base attr_accessible :crypted_password, :email, :password_salt, :persistence_token, :username acts_as_authentic end create_users migration class CreateUsers < ActiveRecord::Migration def change create_table :users do |t|
2006 Jul 05
1
Routing error "unitialized constant" after refactoring
Hi. I''ve heavily refactored an application. When I access http://0.0.0.0:3000/ I now get the stack trace at the end of this mail. My routes.rb: ActionController::Routing::Routes.draw do |map| map.connect '''', :controller => ''user/dashboard'', :action => ''boo'' map.connect '':controller/:action/:id'',
2009 Oct 19
3
routing namespaced controllers
Hi, I have one controller in the /app/controllers/animals_controller.rb directory, and another in /app/controllers/production/services_controller.rb. The thing is that one Animal has many Services, and i''d like to access to them using something like: http://localhost:3000/animals/1/production/services/1 or at least with: http://localhost:3000/animals/1/services/1 I tried the last one
2010 Jun 02
5
user routing versus admin routing strategies?
In an app where ordinary users are limited to viewing and editing their own "stuff", but someone with admin privs can view and edit anybody''s stuff, what''s the right strategy for routing? At first blush, I''d think that an ordinary user (e.g. with id 565) should see something like: http://example.com/mystuff.html ... where the controller assumes
2006 May 19
0
Hiding and unhiding actions.
I''m using the UserEngine, so I have a UserController that responds to /user/action. I subclassed it with an Admin::UserEngine. I''d like to have some actions available in the subclass and *not* in the superclass. If all the code was mine this would not be a problem, of course. However , I''d like not to change their code. I had a look at hide_action, but there
2005 Sep 25
2
Problem issue with belongs_tohas_one and error_message_on
Hello I have a problem with relationship with belongs_to - has_one and with error_message_on I have splitted one huge table users into two tables user and profile. In users I''m keeping main fields like id,email,password and in profile there are the rest of fields. Table users: id,email,password Table profiles: id,user_id,publicname, and more ... My models are: - user.rb has_one
2006 Apr 12
5
Rails talking to MySql (cygwin on Windows XP)
Hello fellow RoR users, I am a newbie and I thought RoR is so easy to set up and that I would be saving so much time -- but I am still waiting to save time because I simply couldn''t get Ruby/Rails to talk to MySQL (5.0.18) at all. Here are the steps that I have examined: 1) I look at dabatbase.yml and put in the right information to talk to the database I have set up (the
2006 Jun 07
0
Controllers, refactoring, routes, filters...
I was wondering if anyone had any advice/experience with when you refactor controllers. Because the controllers are tied to the URL via the routes, it makes refactorings a little more complicated than they should be in some cases, especially if you don''t want the URLs to change. Of course the various filters with :only/except provide an additional flex point to use before a
2007 Dec 23
1
Rails: possible routing discrepancy
Hey all, I''m seeing a strange behavior in my spec that I can''t account for. I''ve got a route that looks like this: map.writing \ ''/writing'', :controller => ''abstracts'', :action => ''index'', :index => { :select => ''all'' } and I have template code that looks like this: <br
2006 Jul 04
0
Multiple and nested controllers or routing
Hi, I''m new to Ruby and Rails and I''m making a simple application to help me learn how to use it. At the moment I have an admin controller. When the user goes here I want them to be presented with 3 choices: manage photos, news and pages. From there I want them to be able to CRUD each type. At the moment in the admin controller I''ve defined actions "photo",