actioncontroller
Why is Rails before_filter called twice when the controller is subclassed?
I\'m at Rails 2.3.5 and I have this problem: class BaseController < ApplicationController before_filter :foo, :only => [:index][详细]
2022-12-31 05:27 分类:问答How to make Rails caches_page survive a capistrano deploy?
Is it possible to configure Rails so caches created with caches_page survive a Capistrano deploy? Ie, can I configure开发者_开发技巧 the cache to be saved into a shared directory rather than in the pu[详细]
2022-12-22 12:50 分类:问答class variables and module inclusion, specifically in ActionController
I want to have some kind of single list that is initialized in a se开发者_高级运维perate module, then can be included in a controller and modified at the controller-class level, and accessed at the co[详细]
2022-12-21 17:06 分类:问答How rails render works in controller? Why something it doesn't use layout?
I tried to write render in an action, but layout behavior is different, why? def show 开发者_运维问答 # assuming we have a partial in app/views/shared/_panel_show.html.erb[详细]
2022-12-20 02:35 分类:问答Action caching is not expiring correctly, even when I can see it's being called
I\'ve got a sweeper that\'s supposed to expire a few action caches. Even though the debugger stops immediately before the call to expire_action, it\'s not actually expiring the action. Any idea what c[详细]
2022-12-20 02:26 分类:问答Rails ActionController Execute Same Code for Every Action
To the rails experts out there I was wondering where/how you would execute the same code for every action in your web application? If you can point me to an article or provide a short code snippet I w[详细]
2022-12-19 13:25 分类:问答Ruby on rails nested form model
I\'m trying to use rails nested form_for helper, but I am getting the following error: BlogPage(#49859550) expected, got Array(#31117360)[详细]
2022-12-19 08:42 分类:问答Rails controller testing - Validation errors do not raise a HTTP error response
I have an ActionController derived Test which sends a \'post\' request to the controller under test with incorrect data. The controller tries to create a new object and save it. The model has validati[详细]
2022-12-16 06:48 分类:问答Rails best practice for having same form on multiple pages
I am developing an Rails 2.3.1 Web site. Throughout the Web site, I need to have a form for creating Posts on various pages (Home page, Create Posts page, Post listing page, Comment listing page, etc.[详细]
2022-12-08 11:19 分类:问答
加载中,请稍侯......