similar to: `ActionController::Base#render :nothing => true` still whines about "missing template"

Displaying 20 results from an estimated 5000 matches similar to: "`ActionController::Base#render :nothing => true` still whines about "missing template""

2008 May 06
1
specifying output of render call
Hello again, First of all, thanks much for everyone''s input on my question last week about spec''ing an invocation of super. Here''s another question that seems resistant to my Google searching: With this helper method (defined in a module and included in Rails controllers): def render_rjs_redirect(url = ''/'') render :update do |page| page
2010 Jan 18
0
rails 3.0: ActionController::Base render()
Can anyone explain where render() comes from in ActionController::Base? I managed to trace it down only that far: ActionController::Base includes ActionController::Rendering where render() method is defined. This definition however calls to render of the superclass. Superclass is ActionController::Metal. Which in its turn inherits from AbstractController::Base. None of those have render () either
2003 Aug 25
0
Grandstream firmware update. {HTTP error}
Looks like Mozilla forgives that problem you are talking about too.. I have had no problems configuring the GS phones using Mozilla on RH9.. > -=> On Sun, 24 Aug 2003 09:47:06 -0400 (EDT), John Vozza <john@netrom.com> said: > > > Just noticed that version 1.0.3.81 has been released on the > > Grandstream website. > > Doh. I see they still haven't decided
2007 Sep 27
1
rspec_on_rails: controller method not getting called
In my rspec_on_rails controlle rspec, I have this: require File.dirname(__FILE__) + ''/../spec_helper'' describe FooController, "with a foo" do it "should be false" do get ''index'' assigns[:foo].should be_false end end In my controller I have this: class FooController < ApplicationController def index @foo = FALSE end
2007 Dec 08
14
Small updates and release plan
Hello Guys, I''ll like to suggest a small release fix before we start doing big changes: platform fixes. Current we''re setting MSWIN32 (mswin32) as platform for Windows gem, but we should be using Gem::Platform::CURRENT instead (i386-mswin32 as current Ruby windows implementation). Also, the jruby/java platform need to be defined. That change will ease the compatibility path
2006 May 11
1
rendering in after_filter
Hi! Is it possible to render the action within the after_filter method, or is the rendering performed before? I have something like this: class FooController after_filter :send def a @content=... end def b @content=.. end protected def send send_data(@content,...) end end However, when calling the action a or b, the @content doesn''t get sent, but instead
2006 Apr 29
1
reloading include-modules inside controller not working
Hi guys, I would expect an ActionController-derived class to reload _completely_ in development mode. class FooController < ApplicationController include FancyStuffSupport def index # bla end # more actions here end However, the ''FancyStuffSupport'' is not reloaded, only the ''FooController'' itself. Can this behaviour be changed? I feel back
2006 May 23
0
rails_asset_id, query strings, and browser caching
Hi all. Now that compute_public_path calls _rails_asset_id to append a query string containing the asset file''s modification date, all asset URLs contain query strings. [1] Which, in theory, is a fantastic thing for caching, since it forces browsers to download and not cache changed assets, allows them to cache unchanged assets forever, and has no effect on the actual file or what is
2008 Apr 29
1
Spec''ing controller macros
Hi, (This is my first post after months of appreciative lurking...) I''m trying to spec the following conditional controller macro: class ApplicationController < ActionController::Base # turn off session management for robots session :off, :if => lambda {|req| req.user_agent =~ /(Google|Slurp)/i } # ... end My current attempt seems to be quite unsuccessful: 1) when I
2006 Feb 03
4
(BUG in svn/trunk?) - superclass mismatch for any subclass of ApplicationController
I track svn/trunk of Rails using svn:externals Some change to Rails committed in the last 1-2 days broke my subclass of ApplicationController The example, below, works with Rails 1.0, but in today''s svn, it dies with the following error: "superclass mismatch for class FooController" class ApplicationController < ActionController::Base end class FooController <
2007 Aug 04
5
reusable specs - almost there
I have a lot of controllers with virtually identical functionality for most actions. I''ve been using shared behaviours to DRY things up a bit, but I still have to create separate behaviours for each context before I can use the shared behaviours what I have now is a generic file which contains all the behaviours and examples common to all the controllers, and that file gets loaded from
2006 Jul 15
2
Render -> ActionController -> Render -> ...
Hi Guys, ActiveRecord is great for being able to drill down through many tables. I often locate the very "top" record, and have a render :action => "show" display that top record. Often I want to drill down like: @kingdom.phylums.classes.orders.each do |order| render :partial => "order/show" end But, depending on the user who is logged in, they see a
2006 Jun 07
0
Logger in ActionWebService::Base?
I''d like to split up my directly dispatched controller into a layered dispatch setup with one controller and two services derived from ActionWebService::Base. However, in doing this I found that logger is not a class_variable of AWS::Base. This kind of scares me away from using the layered dispatch mode, as I''d like to have logging in the method implementations. Is there a clean
2008 Mar 14
3
ActionController <-> ActiveView code access ambiguity
Hi All! This is not a problem in general but i''ve just missed the point. If my application has a global state, which i have to use both throughout ActionController and ActiveView, then, where to place that state? E.g. if I do this: class ApplicationController < ActionController::Base protected def authenticated? !user.nil? end end then I can''t use that from any
2011 Mar 10
1
Can anyone help me understand Apache Errors?
LogWatch reports items like: Connection attempts using mod_proxy: 83.167.123.83 -> 205.188.251.1:443: 1 Time(s) 83.167.123.83 -> 64.12.202.36:443: 2 Time(s) Requests with error response codes 403 Forbidden 205.188.251.1:443: 1 Time(s) 64.12.202.36:443: 2 Time(s) 404 Not Found //jmx-console/HtmlAdaptor: 1 Time(s) /VINT_1984_THINK_DIFFERENT: 1 Time(s)
2006 Jun 28
12
Ajax.Updater
Hi, someone can help me, I am ot able to find the way how to user Ajax.updaterto test if the request give some positive or negative result. I am able only to return the result inside a div. An example is appreciated. _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2005 Dec 15
5
initialize called more than once?
Hi, In my test case below, it seems that ''initialize'' is called everytime ''hello'' is called. Is this by design, a bug, or my pilot error? class FooController < ApplicationController def initialize print "\n initialize \n" end def hello print "\n hello \n" end end I
2006 Mar 09
4
Stop users accessing methods.
Hello all. Is there a way to stop users from being able to access a controllers methods without affecting the ability of other controllers to use them? i.e FooController def secret #Stuff end end BarController def index redirect_to :controller => ''foo'', action => ''secret'', :id => ''007'' end end But directly
2006 Mar 14
3
Check whether externam URL is valid?
Hey, I have users entering URLs into my app, is there anyway in which I can check to see if the URLs actually point to something before saving the user input? Maybe a kind of ''ping''-action that returns true on success? (btw: does anyone of a tentative release date for Rails1.1? I''ve been slobbering all over my RailsRecipes book and I can''t wait! Also, Scott
2005 Dec 18
3
Render Nothing....
Hi, What''s the best way to render nothing ? I am making an ajax call to an action on my controller that does not need to make any changes to the view. Not sure how do that yet as I get an exception in the logs saying xxx.rhtml not found.... Thank you all !! -- Posted via http://www.ruby-forum.com/.