search for: protect_against_forgery

Displaying 7 results from an estimated 7 matches for "protect_against_forgery".

2010 Sep 23
1
undefined method `protect_against_forgery?' for #<ActionView
Hi guys This is a pretty tricky one. I get a "undefined method `protect_against_forgery?'' for #<ActionView::Base:0x569a3d4>" error when trying to generate a partial from ''outside'' the web site. I do this as I have a rake task that checks for changes periodically in the background, and if it then sees a change it rebuilds the partial and posts the...
2009 Sep 10
1
undefined method `protect_against_forgery?'
...:controller => menu_item.controller, :action => menu_item.action } } there is a error as following: undefined method `protect_against_forgery?'' for #<Node:0xb66986b8> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/ helpers/prototype_helper.rb:1059:in `options_for_ajax'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/ helpers/prototype_helper.rb:449:in `remote_function'...
2007 Oct 02
0
Rails 2.0 & rspec edge - not protected_against_forgery?
The new forgery protection is throwing of rspec: NoMethodError in ''ApplicationHelper login-logout when logged in should show the name of the current user'' undefined method `protect_against_forgery?'' for #<#<Class:0x3219118>: 0x34e1f94> /Users/jcf/dev/work/sim/vendor/plugins/rspec_on_rails/lib/spec/rails/ dsl/behaviour/rails_example.rb:41:in `method_missing'' /Users/jcf/dev/work/sim/app/helpers/application_helper.rb:8:in `login_logout'' ./spec/helpers/...
2010 Sep 21
0
Upload form with uploadify jquery plugin
...ipt_tag "window._token = ''#{form_authenticity_token}''" %> <%= javascript_include_tag "uploadify/swfobject" %> <%= javascript_include_tag "uploadify/jquery.uploadify.v2.1.0.min" %> <script type="text/javascript"> <% if protect_against_forgery? -%> var AUTH_TOKEN = ''<%= form_authenticity_token %>''; <% end -%> $(document).ready(function() { $(''<%= photo_field %>'').uploadify({ uploader : ''/javascripts/uploadify/uploadify.swf'', script : '&...
2008 Jun 15
11
[PATCH] helper to create fb css stylized table
I attached a rails helper implementation of the fb_table described here: http://wiki.developers.facebook.com/index.php/Facebook_Styles I included testing and comments. I hope you find it useful. Curiously, it''s really a small extension of FBML. Richard -------------- next part -------------- Index: test/rails_integration_test.rb
2008 Jun 30
1
Help with form_for
...p>Username: <span class="notice"><%= flash[:notice]%></ span></p> 6: <%= f.text_field :username %> 7: <p>Password:</p> RAILS_ROOT: /home/eyp/workspace/lists Application Trace | Framework Trace | Full Trace (eval):2:in `protect_against_forgery?'' app/views/sessions/new.rhtml:4:in `_run_erb_47app47views47sessions47new46rhtml'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/ form_tag_helper.rb:431:in `extra_tags_for_form'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/helper...
2008 Dec 06
9
jQuery Rails Functions
Hi, I was wondering if anybody who used jQuery with rails could help me out. I have a droppable that fires a simple function, shown below: $("#list").droppable({ accept: ".item", hoverClass: ''droppable-hover'', drop: function(ev, ui) { $(this).append("<br>Dropped!"); } }); But how could I get this to fire a Rails funciton in the