similar to: erase_redirect_results in Rails 3.0

Displaying 20 results from an estimated 20000 matches similar to: "erase_redirect_results in Rails 3.0"

2010 Jun 26
1
Ajax Form with Multipart File Upload in Rails 3.0
How would I achieve this? In Rails 2.x, I would use responds_to_parent, but it seems quite unsupported now. What plugins/gems do people use nowadays that would automate 1) targeting form to iframe 2) sending javascript to iframe 3) having the javascript execute another javascript on parent page Thank you, Sharkie -- Posted via http://www.ruby-forum.com/. -- You received this message because
2012 Sep 18
4
multiple modules defining same method included into a class
In Ruby, classes are never closed: you can always add methods to an existing class. This applies to the classes you write as well as the standard, built-in classes. All you have to do is open up a class definition for an existing class, and the new contents you specify will be added to whatever''s there. In the same regard, if module is used with the name of a pre-existing module that
2006 May 30
2
Strange error
I have been getting the following error everyonce in a while. Can someone please suggest what could be going wrong with my system? It happens about once every 3 weeks. I resolve this by rebooting my server, although I never tried to figure out what is the real problem. Sharkie 2006-05-30 16:53:49: (mod_fastcgi.c.1561) connect failed: 386 Connection refused 111 0 /tmp/site.fcgi.socket-2
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
2012 Sep 21
2
in Rails, what is the main (global) scope called?
For example, you see files called rails/actionpack/lib/action_controller/base.rb which adds methods and such to the open module ActionController. What scope is ActionController in? Is it just called the global scope? Obviously, there is namespace resolution lookup. And a good example of this is in the Base class of the same file. It references one module like this: AbstractController::Layouts
2010 May 24
3
ActionController::DoubleRenderError
def dispfriends @myfriend=[] @myfriendlogin = [] i=0 @currentgroup = Group.find_by_id(params[:groupid]) puts @currentgroup.id @currentfriends= GroupFriend.find_all_by_user_id_and_group_id(current_user.id, @currentgroup.id) for n in @currentfriends @myfriend=n.friend_id @myusers = User.find_by_id(@myfriend) @myfriendlogin[i]=@myusers.login puts @myfriendlogin[i] i=i+1 respond_to do
2007 Nov 06
3
Urgent!!!! responds_to_parent error
Hello I am trying to upload a picture and refrecar layer with responds_to_parent. I have this form rhtml ------ <% form_for(photo, :url => {:action => "create", :tID => params[:tID] }, :html => { :multipart => true, :target => "uploadFrame", :id => ''uploadPhotoForm'' }) do |f| -%> <tr> <td> <div
2006 May 29
3
IFRAME based RJS - responds_to_parent
** File uploads with AJAX mojo ** Respond with RJS to your parent window with a form action targeted to a hidden IFRAME. Handles all the painful situations like scoping your JavaScript to your parent window generating the script block for execution and clearing the IFRAME after execution so the back button doesn''t re-execute the action. `plugin install
2010 Mar 21
3
Error in the code Doube Render (colins')
Hi everyone, i followed colins example and it worked perfectly but now i get this error ActionController::DoubleRenderError in UserController#login Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to
2013 Jul 10
4
Decoupling of ActionPack
Hello! Are the plans of splitting ActionPack for several gems (AbstractController, ActionView, etc)? Like https://github.com/rails/rails/pull/7356 ... I.e. I know gems that are needed AbstractController only... And they are forced to require the whole ActionPack... Thanx. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To
2010 Jul 06
0
Rails 3: link_to :remote => true with spinner
How is this most efficiently done? link_to_remote is gone. I am using jQuery and am wondering how I could bind beforeSend call back with my link_to :remote => true call. So that I can use it to draw spinner. Sharkie -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this
2006 Apr 23
3
Does AJAX form_remote_tag remove "\r\n"?
When I submit textarea with "\r\n" inside its content, all the "\r\n" are gone at the receiving end? Is there a known behavior I should be aware off? Or should I start looking some where else. Thank you, Sharkie
2006 Dec 19
0
Looking for a way to avoid DoubleRenderError.
The "update" action of my controllers and under certain circumstances creates a xml file on the filesystem. Using an after_filter that only gets called after the update action I create the XML file. Problem is, I get a DoubleRenderError because the update action either calls redirect_to or render. I can get around the render call by calling performed?() but the call to redirect_to
2006 Jul 11
1
responds_to_parent plugin
Not sure where I can get help with this one but I getting a wierd behavior out of safari when trying to use the responds to parent plugin. Basically I have the following in my view: <div class="rightsidecontentbody"> <%= form_tag({:action => "create"}, {:multipart => "true", :target => "frame"}) %> <form
2007 Nov 30
5
render_to_string in an after filter
I''m using render_to_string in an after_filter, which renders a partial that is sent to a web service. Here''s the code: class MyController < ApplicationController after_filter :post_to_webservice def show # show logic end def post_to_webservice stuff = render_to_string :partial => ''stuff'' webservice_post(stuff) end I get a DoubleRenderError in the
2006 Mar 24
3
Performance slow down with increasing log files size?
Dear all, I have been noticing this. Whenever I delete my log files and restart lighttpd, my rail site runs very fast. However when my log files become large, my rail site becomes slower. Then I repeat the process of deleting log files again, and my site is fast again. Is this a normal behavior? Is there something I can do to make performance scale better? Thank you, Sharkie
2011 May 25
1
warning: toplevel constant SomeController referenced by Admin::SomeController
This issue has been discussed before (http://www.ruby-forum.com/topic/ 125392) and after spending a while debugging through this, I still don''t have a solution. Lets try again? I have two controllers, SomeController and Admin::SomeController. When SomeController is loaded first (which happens under spork, found out by editing ActiveSupport::AbstractController) I get warning: toplevel
2005 Jul 06
6
DoubleRenderError exception
The DoubleRenderError exception recently introduced is forcing me to go back and rewrite my apps authentication handler. Before I could do a redirect right in the middle of a request. Whatever was happening after that went unnoticed, I assumed it was simply ending the request after the redirect was called, but apparently it was going on and rendering the page. Why can''t a redirect
2006 Aug 03
1
Very strange - AJAX is flakey when I uploaded my site
The weirdest thing is happening. I have an ajax uploading call, and after I uploaded it, every part of the controller will work except the ajax call. The Ajax call is to a javascript function that is in one of my js file. Ive confirmed that the controller runs all the way till the render :update. Then, there I have: responds_to_parent do render
2006 Feb 13
1
Change redirect after method ''redirect_to''
I want to be able to change the redirection url after I called redirect_to, is that possible? My specific use case is that I want to change the default redirection of "Login Engine" method signup, but I am seeing no other way then copy/past and change the parameters of redirect_to. This questions extends to render method as well, I want is to avoid DoubleRenderError exception. --