« Return to Thread: Only One Controller + Urgent

Re: Only One Controller + Urgent

by Adam Akhtar-2 :: Rate this Message:

Reply to Author | View in Thread


What is the first step you are describing here .. ?
i did not get it properly .. ?


Älphä Blüë wrote:

> Hemant Bhargava wrote:
>> Hi Champs,
>>
>> Need Help .. :(
>>
>> Actually the thing is that i am having many controllers a, b, c and d..
>> But what i want it that only "a" should be displayed to the users .. b,
>> c, d not ..
>> Is there any way to do it .. ?
>>
>> Cheers ..
>
> Yes, you can do this a couple of ways..
>
> The first way is you can inhibit the routing of controllers you don't
> want people to access by doing something similar:
>

In Which controller or config/routes.rb file ..


> Remove the routing to that controller completely OR
> map.resources :controller_name, :only => :method_name
>
> You could setup a catchall method using the above and have it redirect
> to some other controller etc...
>
> OR
--
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

 « Return to Thread: Only One Controller + Urgent