Hide_action doesnot hide view


#1

The view file (eg. apps/views/items/list.rhrml) is still displayed even
when the action is hidden (hide_action :list). How can I hide view file
form being automatically displayed in this circumstance?

thanks,
jigar


#2

Jigar G. wrote:

The view file (eg. apps/views/items/list.rhrml) is still displayed even
when the action is hidden (hide_action :list). How can I hide view file
form being automatically displayed in this circumstance?

thanks,
jigar

Delete the view file. This assumes, of course, that you don’t need it
anymore. Otherwise, why would you want to hide the action?

– stefan


For rails performance tuning, see: http://railsexpress.de/blog
Subscription: http://railsexpress.de/blog/xml/rss20/feed.xml


#3

rename it?

It is under version control, right? Go ahead and delete it, then
restore
when you need it again.

matt


#4

Delete the view file. This assumes, of course, that you don’t need it
anymore. Otherwise, why would you want to hide the action?

i cant delete it, cause it will be required in future(in abt 15 days). i
just wanted to disable signup for my application for some time.

So, can i assiume there is no way, yet, in rails to completely disable
action and view?

– stefan


For rails performance tuning, see: http://railsexpress.de/blog
Subscription: http://railsexpress.de/blog/xml/rss20/feed.xml


#5

matthew clark wrote:

rename it?

It is under version control, right?

not really ;), not right now, but i can put it under vcs.

Go ahead and delete it, then
restore
when you need it again.

matt

and for restoring, i’ll have to remember all the filenames and their
version nos (or a tag will do) and merge the changes when ever i require
tham back.

you’ll have to agree, that it is more painful than having something like
“hide_view” in code.

thanks for the reply, i’ll probably will delete view code and use
“hide_action” in my controller.

jigar.