Page does not display

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

On Sep 11, 9:19 pm, Shandy N. [email protected]
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

Frederick C. 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???

Can you post the relevant Ruby code?

Sent from my iPhone

On Sep 11, 2008, at 6:10 PM, “Hassan S.”
<[email protected]

On 11 Sep 2008, at 21:46, Shandy N. wrote:

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

On Thu, Sep 11, 2008 at 1:46 PM, Shandy N.
[email protected] 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 S. ------------------------ [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs