Sorry about this mess, but I just figured it out what was really happening
and fixed it.
Rails probably always interpret the plus sign as a white space, but
everything started because I couldn't find how the authenticity_token is
sent using <%= link_to "Destroy", [@client, address], :confirm => 'A
I'm using csrf_meta_tag and the the headers appears correctly. The problem
is when the athenticity_token has a plus sign and I use any of Jquery ajax
function. So I tried to render the form_authenticity_token already escaped
using that method above ( CGI.escape), but now the jquery ajax function
wo
On 30 Apr 2011, at 12:48, Ernesto Rocha wrote:
> I did some brute force only to test, like this:
>
>
>
>
> some characters are escaped, but now the link_to ... :method => delete is not
> working anymore (the user session is killed).
>
> If I user URI.escape the plus sign is not escaped.
>
I did some brute force only to test, like this:
some characters are escaped, but now the link_to ... :method => delete is
not working anymore (the user session is killed).
If I user URI.escape the plus sign is not escaped.
So, i'm still at point zero.
Thanks,
Ernesto
On Fri, Apr 29, 2011 a
On Apr 29, 3:06 am, Ernesto Rocha wrote:
> How i escape it before the rails server process it ?
>
You'll need to do that at the point that you add the token to the link
Fred
> Thanks,
> Ernesto
>
> On Thu, Apr 28, 2011 at 4:58 AM, Frederick Cheung <
>
>
>
> frederick.che...@gmail.com> wrote:
>
I cannot say what happend about 10 days ago, I implemented som new
remote calls with forms and started to use nested forms and also more
javascripts, but nothing more specific was done. Also changed to a new
Imac and had to reinstall rails and other things, but that was done
some days before the e
On Wed, Sep 9, 2009 at 1:07 AM, Hans wrote:
>
> System problems with rails ?
> I have dveloped a rather complex rails application with many gems and
> pluginsg.
> It worked fine until some days ago, when I started to get some
> unredicatble errors that I cannot understand
>
>
So, what changed som
i really can't answer your questions regarding why this happens, but
for the HOW_TO part i'd suggest to just do it like this:
# controller:
@columns = Source.column_names
# view:
<%= @columns %>
this respects MVC.
--~--~-~--~~~---~--~~
You received this message
Sorry for duplicated threads, it was a mistake, I opened new one here
http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/7e82b30f719ad1ac
...
On Dec 17, 11:14 pm, Daniel Lopes wrote:
> Some idea? I still don't understand why text_field load values from
> database instead of mod
Some idea? I still don't understand why text_field load values from
database instead of model.rb
On Dec 17, 7:14 pm, Daniel Lopes wrote:
> Hello, I have a strange behavior and don't know why.
>
> If I override attributes from AcitveRecord object like below:
>
> def end_date=(date)
> date =
Basically, all my controllers inherit from GenericController, all my
models from GenericModel, so I can single source stuff like these
behaviors, but override if necessary...
GenericController:
def create
model = params[:controller].singularize.downcase
@object =
params[:controller].singu
> Now the models decide which of their own fragments to expire (via
> Rails.cache.delete) depending on what was changed.
Sounds interesting do you have a code snippet or tutorial you can point
me to, before i get too entrenched in this sweeper mess??
--
Posted via http://www.ruby-forum.com/.
Richard Schneeman wrote:
> The confusing part was
> that the sweeper gets called no mater what, but the expire_fragment only
> works on the specified actions.
I actually gave up on the sweepers in my app, as they were far too
general, and expired more than was necessary in some cases, and give
Ar Chron wrote:
> Have you determined what
>
>%r{.*}
>
> evaluates to in the context of your Sweeper?
%r{.*} will delete absoloutly everything in my cache, i think i found my
error after reading this forum thread
http://www.ruby-forum.com/topic/145163#643061 .
In my controller i had:
phr
Have you determined what
%r{.*}
evaluates to in the context of your Sweeper?
--
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 thi
Thanks again!
Frederick Cheung wrote:
> Require it explicitly from the extension file ?
>
> Sent from my iPhone
>
> On 23 Nov 2008, at 20:31, Alex Sonar <[EMAIL PROTECTED]
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this messag
Require it explicitly from the extension file ?
Sent from my iPhone
On 23 Nov 2008, at 20:31, Alex Sonar <[EMAIL PROTECTED]
s.net> wrote:
>
> Fred,
>
> I really appreciate your help. The following works like a charm.
>
> silencio:alias u2$ script/console
> Loading development environment (Rail
Fred,
I really appreciate your help. The following works like a charm.
silencio:alias u2$ script/console
Loading development environment (Rails 2.2.2)
>> require 'app/helpers/alias.rb'
=> ["XYZ"]
>> require 'app/views/alias_ext.rb'
=> []
>> XYZ.new 1,2
before chain
in Alias constructor
after cha
The problem here is that the "normal" XYZ in xyz.rb is never loaded so
you're trying to call Object's initialize, which does not take 2
arguments
Fred
Sent from my iPhone
On 23 Nov 2008, at 18:52, Alex Sonar <[EMAIL PROTECTED]
s.net> wrote:
>
> Greetings.
>
> I've got very strange behavio
19 matches
Mail list logo