# Web Flow and the session method in ActionController

**URL:** <https://www.ruby-forum.com/t/web-flow-and-the-session-method-in-actioncontroller/92176>\
**Category:** Rails\
**Created:** [April 16, 2007, 10:12pm UTC](https://www.ruby-forum.com/t/web-flow-and-the-session-method-in-actioncontroller/92176 "2007-04-16T22:12:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 16, 2007, 10:12pm UTC](https://www.ruby-forum.com/t/web-flow-and-the-session-method-in-actioncontroller/92176/1 "2007-04-16T22:12:35Z")

</div>

Hi there,

I’m writing a port of Spring Webflow to Ruby on rails and I’ve  
encountered quite a lot of difficulty finding how to override the  
session[] method which is accessed via any ActionController.

I have my pseudo-code ready to implement, but I can’t find the method  
declaration to copy it’s signature.

Also, if anyone wants to collaborate on this particular plugin, which  
I called ActionFlow, please let me know. I’ll be glad to share my  
work. It’s almost ready for testing and since I’m far from a Ruby  
veteran, I’ll need help on refactoring, optimization and testing.

Thanks a million !

Luc

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 16, 2007, 10:16pm UTC](https://www.ruby-forum.com/t/web-flow-and-the-session-method-in-actioncontroller/92176/2 "2007-04-16T22:16:35Z")

</div>

I forgot to mention, don’t look for ActiveFlow on Rubyforge, the name is  
already taken and I’m trying to reach the project admin to use this  
name.  
The current admin doesn’t have any files released yet…

Luc

2007/4/16, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> 

–

* * *

Luc B.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 16, 2007, 10:32pm UTC](https://www.ruby-forum.com/t/web-flow-and-the-session-method-in-actioncontroller/92176/3 "2007-04-16T22:32:35Z")

</div>

The session method is defined via

```
attr_internal :session

```

in ActionController::Base

which itself is defined in ActiveSupport (file attr\_internal.rb). The  
interface is easy: it wraps a hash requests a symbol to read or write.

The method itself won’t be the problem… the problem are other classes  
that use it (like the Session management).

Have Fun  
Skade

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 17, 2007, 3:09am UTC](https://www.ruby-forum.com/t/web-flow-and-the-session-method-in-actioncontroller/92176/4 "2007-04-17T03:09:05Z")

</div>

You have any suggestions ?

It’s the only remaining architectural ‘problem’ I’m facing.

Luc

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 16, 2007, 11:04pm UTC](https://www.ruby-forum.com/t/web-flow-and-the-session-method-in-actioncontroller/92176/5 "2007-04-16T23:04:42Z")

</div>

I’ve just packaged the source code, if anyone wants to help.

BEFORE YOU FLAME ME

NOTHING is tested yet. I didn’t even execute the code once. I’m not a  
Ruby  
genius, I’m barely good enough to write this. If you have nothing  
constructive to say, don’t say anything.

ALL COMMENTS ARE WELCOME though. I know that a lot of people will  
benefit  
from this plugin so it’s time to participate and suggest improvements.

Luc

2007/4/16, Luc B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> > I called ActionFlow, please let me know. I’ll be glad to share my
> 
> –
> 
> * * *
> 
> Luc B.

–

* * *

Luc B.
