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 -- Posted via http://www.ruby-forum.com/.
Jigar Gosar 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
>> > 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-- Posted via http://www.ruby-forum.com/.
rename it? It is under version control, right? Go ahead and delete it, then restore when you need it again. matt On 1/15/06, Jigar Gosar <jigar.gosar@gmail.com> wrote:> > > >> > > 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 > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060116/cdfd3925/attachment.html
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. > > mattand 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. -- Posted via http://www.ruby-forum.com/.