From: Kai Janson <kot...@gmail.com>
Date: Wed, 7 Nov 2012 08:26:04 -0600
Local: Wed, Nov 7 2012 9:26 am
Subject: Re: [chicagoboss] Question about Sessions and Flash Messages in Chicago Boss
You can do that by using {{_session}} in the view for the session
--Kai
On Wed, Nov 7, 2012 at 1:52 AM, Graeme Defty <graeme.de...@gmail.com> wrote:
> Evan, > This reminds me of an earlier conversation regarding an option to display
> It occurs to me this could be done as a "for free" variable (e.g. _data)
> Sounds easy to do. Is it practical?
> g
> _____________________________________________________________
> On 6 November 2012 22:39, Evan Miller <emmil...@gmail.com> wrote:
>> You need to pass the flash messages into the view from the controller:
>> Messages = boss_flash:get_and_clear(SessionID)
>> View:
>> {% for message in flash_messages %} ... {% endfor %}
>> See here for a list of variables that the views can access "for free":
>> http://www.chicagoboss.org/api-view.html
>> Everything else must be passed in explicitly.
>> On Sun, Nov 4, 2012 at 7:36 AM, @chrisco <chris.come...@gmail.com> wrote:
>>> Hi,
>>> I am a beginner programmer (beginner at programming in general and
>>> Created headliners_app_controller.erl
>>> -module(headliners_app, [Req, SessionID]).
>>> When I run the app and use a Chrome extension ("Edit This Cookie") I see
>>> When I try to test/experiment with boss_flash, as described here
>>> How do I use boss_flash? I just basically want to get to a Chicago Boss
>>> Here are further details on my beginner's folly:
>>> I added this line:
>>> to this file:
>>> so it now looks like this:
>>> I added this line to a view file:
>>> I restarted the server with:
>>> And get this error:
>>> I tried all the combinations of moving the code to different files
>>> Thanks,
>>> --
>> --
>> --
> --
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||