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
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
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: railsexpress.de
rename it?
It is under version control, right? Go ahead and delete it, then
restore
when you need it again.
matt
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: railsexpress.de
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs