similar to: undefined method `protect_against_forgery?'

Displaying 20 results from an estimated 100 matches similar to: "undefined method `protect_against_forgery?'"

2006 Apr 18
4
update_page yields escaped code in callback
Hi All, The subject pretty well describes what I am experiencing. This line in an .rhtml template: <%= link_to_remote menu_item.humanize, {:update => ''section'', :url =>{:controller => menu_item}, :complete => update_page do |page| page.activate_tab("#{menu_item}_tab", ''menu_'') page[''section''].hide
2006 Jan 07
3
user engine question
I''ve created an array of hashes in UserController#initialize to describe a menu: @menu_array = [ {:menu => ''home'', :controller => ''home'', :action => ''send_home''}, {:menu => ''user list'', :action => ''list''}, {:menu => ''login'', :controller =>
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 result
2010 Apr 21
4
Accessing the router from a helper
I find manually accessing the router to be quite ugly below. Is there a more direct way to access it? module ApplicationHelper def menu_item text, url = nil routes = ActionController::Routing::Routes url = if url if url.is_a? String url else routes.generate url end else routes.generate :controller
2002 Nov 21
2
TINC (vpn daemon) has stopped working after compiling kernel
Hi folks, after recompiling of kernel (need quota support), tinc daemon has stopped working. Messages from log file are: ... Nov 21 14:45:02 m61 tinc.sunnet[326]: tincd 1.0pre7 starting Nov 21 14:45:02 m61 tinc.sunnet[326]: /dev/net/tun is a Linux ethertap device Nov 21 14:45:02 m61 tinc.sunnet[326]: Process 327 (tinc-up) exited with non-zero status 255 Nov 21 14:45:02 m61 tinc.sunnet[326]:
2010 Sep 18
1
some question
I am making a program and get some trouble here 1. how do I close all opened child window in mdi form? 2. I cannot disable menu_item, perhaps I use .enable false the wrong way? -- Suka linux? Kunjungi blog saya http://penguinroad.blogspot.com _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2006 Jun 22
0
sortable list doesn''t work on production server
I have a sortable list in one of my views, using the sortable example from the recipes book. The sorting works great on my mac. When I throw it on the server for testing it doesn''t save the display order. I cracked open the log file and see that it''s not even returning the id''s like it should: Parameters: {"action"=>"sort",
2006 Jul 07
9
Search on data accross many tables, linked by belongs_to
I am using Ferret and acts_as_ferret, as my search back-end for my Rails project. I have a question about using acts_as_ferret on a main table that is linked to other tables by foreign keys. Is there a way to include the information linked by the belongs_to keyword in the search results ? As an example, let''s say I have a main table ''posts'':
2002 Nov 06
1
File descriptor in bad state...again ;-(
Hi folks, I'm trying to set up a small vpn between a few Sun Ultra1 machines (UltraSparc). Distribution is Debian Woody (stable). The problem: Sunclient: ~~~~~~~~~~ tinc-1.0pre7 original binary package from Woody, machine is running on original distribution kernel (2.4.18). # ls -l /dev/net/tun crw-r--r-- 1 root root 10, 200 Nov 6 22:09 /dev/net/tun # lsmod Module
2003 Aug 22
1
configuration using dhcp
How fo I configure my tinc-up and host file,(mine called remote), for a dhcp assgned address? current configuration: tinc-up: ifconfig $INTERFACE hw ether fe:fd:00:00:00:00 hosts/remote: address = ????? sunnet = 10.5.11.0/24 RSA ket stuff here Since the hostname of the laptop isn't in the etc/hosts file with a static IP I can't use it and since I don't know the IP address I
2006 Jul 23
6
how do you give focus to a form field?
When you put up a page with a form on it and the top item is a text field it would be nice to have that field already focused instead of forcing the user to click in it before they start typing. Is there a rails (i.e. probably Prototype) way of giving focus to a field? I did some searching and found nothing. thanks, jp P.S. I''m on a Mac. Perhaps a winoze and/or unix automatically
2009 Sep 23
2
[PATCH node] Introduces the virtual network administration functions.
Moved the node administration elements to a separate submenu. Created a new network administration menu. * users can define a network * users can create a network * users can destroy a network * users can undefine a network * users can list existing networks, including details Each new command is also available as a separate command line executable as well. Signed-off-by: Darryl L. Pierce
2010 May 25
2
Site Navigation With Polymorphic Has Many Through
Hi, seem to keep running into a wall here. I can''t find any resources on site navigation that can deal with any model being in the nav, allow nesting, and can dynamically update. So I thought about it for a while, and decided on a MenuItems class, which contained the position of the child in relation to it''s siblings, where the parent and the child were polymorphic. Then a given
2006 May 09
2
what are all these methods?!?! :)
I''ve been happily riding the Ruby/Ruby on Rails learning curve .. I bought the pickaxe book, first and beta second editions of the agile book and i''ve been using the api.rubyonrails.com but i''ve come across something which as stumped me I''m fooloing around with :acts_as_tree in the console and I instantiated a new tree object and went to use the readline
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
2010 Sep 21
0
Upload form with uploadify jquery plugin
I would like to integrate the uploadify plugin with a standard rails form. However I can''t figure out how to add a new field and have it get submitted with the file upload. I added a name field into the form, but the valued does not get submitted. <% dialog_file_description = ''Photos'' allowed_extensions = [:jpg, :jpeg, :gif, :png] max_size = 20.megabyte
2001 Apr 09
0
Problems Browsing
I have Samba 2.07 on Mandrake 7.2 distro. I am proxying a DSL connection successfully over Squid. I do not have ipchains running but with all the BS Mandrake like to pack on it's hard to tell what it's scripts all do. All the tests with the smbclient on the samba machine work fine. Also all the test with nmblookup. I have a clean Ping from both ends. When I use smbclient to view my Win98
2009 Apr 12
5
Problems with jRails and ajax helpers
I working on a Rails 2.2.2 app that uses jRails and any time I attempt to use a Rails ajax helper, I get the following error: index 116545 out of string with this stack trace: vendor/plugins/jrails/lib/jrails.rb:197:in `[]='' vendor/plugins/jrails/lib/jrails.rb:197:in `build_callbacks'' vendor/plugins/jrails/lib/jrails.rb:119:in `options_for_ajax''
2006 Nov 04
4
how to get observe_field to use GET method?
Hi All. I am trying to set-up observe_field so that it uses the GET method (To work with a RESTful controller). <%= link_to_remote("Test", :update => "main", :url => { :controller => "projects", :action => "show", :id => "3"}, :method => "get" ) %> <%= observe_field("project_selector", :update
2008 Oct 07
0
associations not saved in migration
hi. i''ve got a couple migrations where i''ve added foreign keys and tried to update them via the migration but my items don''t save. i''ve used save! in the hopes that an exception gets raised but no luck. the migrations run without errors but the data isn''t in the db. can anyone point out what i might be doing wrong? thanks! code below. class