I have these profiles for over a thousand users, and these profiles hold addresses, phone numbers, etc, etc. Every profile works just fine except for one that when the appropriate link is clicked I get a blank page. When I look at the logs files I get the following error: Filter chain halted as [#<ActionController::Filters::ClassMethods::SymbolFilter:0x461a554 @filter=:set_update>] returned false. I can only guess that this is the root of my problem. The thing is that this tool has been in full use since March and I have never had this type of problem. Has anyone encountered this issue before and how do you fix it. Thanks in advance, -S -- 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 group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Sep 11, 9:19 pm, Shandy Nantz <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I have these profiles for over a thousand users, and these profiles hold > addresses, phone numbers, etc, etc. Every profile works just fine except > for one that when the appropriate link is clicked I get a blank page. > When I look at the logs files I get the following error: > > Filter chain halted as > [#<ActionController::Filters::ClassMethods::SymbolFilter:0x461a554 > @filter=:set_update>] returned false. >find out why that filter is returning false. Fred> I can only guess that this is the root of my problem. The thing is that > this tool has been in full use since March and I have never had this > type of problem. Has anyone encountered this issue before and how do you > fix it. Thanks in advance, > > -S > -- > Posted viahttp://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 group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung wrote:> find out why that filter is returning false. > > FredWhat''s happening is that I have this before_filter that set some flags and then returns. I pass an id along so I can instantiate a User object and then save the set conditions of these flags. It is going through the steps correctly, however, when I get to the line that save the object and set flags it doesn''t. if @user.save return true else return false end Not sure why it''s no saving???? -- 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 group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Thu, Sep 11, 2008 at 1:46 PM, Shandy Nantz <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> What''s happening is that I have this before_filter that set some flags > and then returns. I pass an id along so I can instantiate a User object > and then save the set conditions of these flags. It is going through the > steps correctly, however, when I get to the line that save the object > and set flags it doesn''t.> Not sure why it''s no saving????What''s your database log say? -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Can you post the relevant Ruby code? Sent from my iPhone On Sep 11, 2008, at 6:10 PM, "Hassan Schroeder" <hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > wrote:> > On Thu, Sep 11, 2008 at 1:46 PM, Shandy Nantz > <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > >> What''s happening is that I have this before_filter that set some >> flags >> and then returns. I pass an id along so I can instantiate a User >> object >> and then save the set conditions of these flags. It is going >> through the >> steps correctly, however, when I get to the line that save the object >> and set flags it doesn''t. > >> Not sure why it''s no saving???? > > What''s your database log say? > > -- > Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 11 Sep 2008, at 21:46, Shandy Nantz wrote:> > Frederick Cheung wrote: >> find out why that filter is returning false. >> >> Fred > > What''s happening is that I have this before_filter that set some flags > and then returns. I pass an id along so I can instantiate a User > object > and then save the set conditions of these flags. It is going through > the > steps correctly, however, when I get to the line that save the object > and set flags it doesn''t. > > if @user.save > return true > else > return false > end > > Not sure why it''s no saving????Failing validation perhaps. In a case like this where you''re not doing something useful with the return value of save then you might as well use save!, at least you''ll get an error when the save fails. Fred> > -- > 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 group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---