I'm not really sure if this is related to Facebooker but if someone
knows what's going on it must be people using Facebooker
I have the following two action methods:
def index
puts "==index== flash: #{flash.inspect}"
end
def create
flash[:notice] = "Blah"
puts "==create== flash: #{flash.inspect}"
redirect_to(:action => :index)
end
index.fbml.erb contains this:
<%= button_to_with_facebooker "Blah!", :action => :create %>
The application is used through Facebook. I click the button and the
flash contains the notice while create is being executed, but after
that it's empty again. It doesn't survive a redirect.
Any ideas what's going on here?
Thanks.
Mike
> --
> You received this message because you are subscribed to the Google Groups "facebooker" group.
> To post to this group, send email to faceb...@googlegroups.com.
> To unsubscribe from this group, send email to facebooker+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/facebooker?hl=en.
>
--
Mike Mangino
http://www.elevatedrails.com
> There were a couple of versions of Facebooker that had problems with the cookie store. Can you try upgrading to the newest version which is 1.0.62?
This situation still appears to occur with 1.0.63. No flash contents
after a redirect.
///ark
Mike
> Odd. Is the session id changing? What's happening with the cookie contents? Does changing to a different session store fix things?
Sorry - false alarm. I had an old facebooker plugin installed as well
as the current gem. All is well.
///ark
It's not working for me, when using 1.0.64 :(
On 6 Mrz., 23:59, Mark Wilden <m...@mwilden.com> wrote:
> On Thu, Feb 25, 2010 at 6:03 AM, Mike Mangino
>
> <mmang...@elevatedrails.com> wrote:
> > Odd. Is the session id changing? What's happening with the cookie contents? Does changing to a different session store fix things?
>
> Sorry - false alarm. I had an old facebooker plugin installed as well
> as the current gem. All is well.
>
> ///ark
>
>
>
> > Mike
>
> > On Feb 24, 2010, at 8:44 PM, Mark Wilden wrote:
>
> >> On Feb 8, 6:04 am, Mike Mangino <mmang...@elevatedrails.com> wrote:
>
> >>> There were a couple of versions of Facebooker that had problems with the cookie store. Can you try upgrading to the newest version which is 1.0.62?
>
> >> This situation still appears to occur with 1.0.63. Noflashcontents
> >> after a redirect.
>
> >> ///ark
>
> >>> On Feb 6, 2010, at 6:43 PM, J. Pablo Fernández wrote:
>
> >>>> I'm not really sure if this is related to Facebooker but if someone
> >>>> knows what's going on it must be people using Facebooker
>
> >>>> I have the following two action methods:
>
> >>>> def index
> >>>> puts "==index==flash: #{flash.inspect}"
> >>>> end
>
> >>>> def create
> >>>> flash[:notice] = "Blah"
> >>>> puts "==create==flash: #{flash.inspect}"
> >>>> redirect_to(:action => :index)
> >>>> end
>
> >>>> index.fbml.erb contains this:
>
> >>>> <%= button_to_with_facebooker "Blah!", :action => :create %>
>
> >>>> The application is used through Facebook. I click the button and the
> >>>>flashcontains the notice while create is being executed, but after
> >>>> that it's empty again. It doesn't survive a redirect.
>
> >>>> Any ideas what's going on here?
>
> >>>> Thanks.
>
> >>>> --
> >>>> You received this message because you are subscribed to the Google Groups "facebooker" group.
> >>>> To post to this group, send email to faceb...@googlegroups.com.
> >>>> To unsubscribe from this group, send email to facebooker+...@googlegroups.com.
> >>>> For more options, visit this group athttp://groups.google.com/group/facebooker?hl=en.
>
> >>> --
> >>> Mike Manginohttp://www.elevatedrails.com
>
> >> --
> >> You received this message because you are subscribed to the Google Groups "facebooker" group.
> >> To post to this group, send email to faceb...@googlegroups.com.
> >> To unsubscribe from this group, send email to facebooker+...@googlegroups.com.
> >> For more options, visit this group athttp://groups.google.com/group/facebooker?hl=en.
> How did you fix it?
> Did have to configure something?
>
> It's not working for me, when using 1.0.64 :(
I'm afraid all I did to fix it was to remove the old plugin and make
sure I had the 1.0.64 gem installed.
Also, I'm only testing this with Karate Poke application in Mike's book.
///ark
On 9 Mrz., 20:01, Mark Wilden <m...@mwilden.com> wrote:
> Can you send me your source code, pls?
The source is on the book site, actually.
///ark
On 9 Mrz., 21:23, Mark Wilden <m...@mwilden.com> wrote:
buut
only sometimes :(
30% of the times the flash survives
70% it doesnt
i am using the default session_store
when using activerecord store it isnt't working at all :(
this is urgent!
can't anybody help? :(
Yes, I spoke too soon - I'm seeing the same thing. Sometimes it works
and sometimes it doesn't.
///ark
I have already deployed my app and it relys on the flash hash because
i am utilising it to temporarily store data for the publisher
without the fb_publisher my app wont spread :(
On 20 Mrz., 02:02, Mark Wilden <m...@mwilden.com> wrote:
I wouldn't use the cookie store, I would use the activerecord store and use the facebook session id for the session key.
Mike
> --
> You received this message because you are subscribed to the Google Groups "facebooker" group.
> To post to this group, send email to faceb...@googlegroups.com.
> To unsubscribe from this group, send email to facebooker+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/facebooker?hl=en.
We were using the cookie store, and tested the app using Firefox (Mac/
Win Version)
We also tried to use the activerecord store but with this
configuration it didnt work at all (we didn't consider setting a
session key, maybe that was the problem)
We are running on rails 1.3.6.
We switched to memcached and everything works fine now :)
I'll try your advice the day after tomorrow, since I am to busy with
work until then.