similar to: Link_to_remote object missing

Displaying 20 results from an estimated 500 matches similar to: "Link_to_remote object missing"

2008 May 24
1
link_to_remote, image_tag, mouseover is this possible?
Hi guys, I was wondering if you are able to have a link_to_remote, having an image_tag and the link_to_remote has a mouseover event that updates a div. Does the image_tag need the mouseover event? I currently have: <%= link_to_remote(image_tag(@p_image.public_filename(:thumb)), :update => "big_pic", :onmouseover => {:action => :color_change, :id => @p_image.id})%>
2006 Feb 27
0
Mapping '':action/:id/:controller/'' doesn''t work
Hello People, (I am not good at ROR yet. This post could be very lame.) I am going playing with routes.rb. Well, pretty much any combination of mapping works, a part from: map.connect '':action/:id/:controller/'' In this case, the request is routed; however, I get: --------------------------------------- Showing app/views/inputs/start.rhtml where line #8 raised: No url can be
2007 Oct 01
0
View Spec - Misbehaving
I''m trying to write my first view spec; I''ve done some controller specs with integrated views, but thought that isolating the views for some of these tests might be nice. So I wrote this: > describe PlayerContainer, "show" do > > PARENT_ID = 12 > CHILD_NAME = ''Child Name'' > PARENT_NAME = ''Parent Name'' > >
2007 Apr 07
1
Undefined Method 'rewrite' when calling link_to
Whenever I try to pass an options hash to the link_to method (or url_for, or button_to) I get this error: undefined method `rewrite'' for []:ActionController::Routing::PathSegment::Result The trace ends with /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/base.rb:522:in `url_for''
2006 Jun 07
2
How to send post data with link_to_remote?
Hi, I''m trying to send a post body with my link_to_remote call. Prototype supports the ''postBody'' option, but I can''t seem to get link_to_remote to set that. Here''s what I''m trying: link_to_remote ''move up'', :url => { :controller => ''upload'', :action => ''position_ajax'', :id
2007 Nov 20
3
How to test views with Nested Resources and Partials
Hi everyone, I am relatively new to rspec and I am running into a wall in testing my views. I have a RESTful resource Contracts with a nested resource of Line_items. I am trying to figure out how to test the "edit" form of the Line_items. What complicates this is the nested routing and how to account for it, and that there is a partial form (_form.haml) that both the edit.haml and
2008 Jul 24
1
How to add link_to_remote element with RJS?
Hello, after executing an action, I add an <li> element to an existing list using a RJS template: page.insert_html :bottom, :contributors, "<li id=''contributor.#{@contributor.id}''>#{@contributor.user.name}</li>" but I need to add an image with a link_to_remote as I have in a partial page: <li id="contributor.<%= contributor.id
2007 Oct 23
2
to_json inconsistency?
Hello, ActiveSupport::JSON::Variable.to_json is the only to_json without an "options" parameter. Is this intended? For example, this code in a .rjs page[@user.dom_id].visual_effect :drop_out, :afterFinish => ActiveSupport::JSON::Variable.new("foo") fails with ActionView::TemplateError: wrong number of arguments (1 for 0) On line #7 of
2011 Jul 23
0
Rendering of Javascript updates with Rails > 2.1
Hey, i am currently upgrading a Rails 2.1 app to 2.3 to benefit from Rails engines. The app requires rendering javascript updates to strings, which does not work with 2.3 anymore: data = ActionView::Base.new(Rails::Configuration.new.view_path).render(:update) do |page| page["div[id=''foo'']"].removeClass("bar") end whihc results in an error because the
2008 May 13
0
Problem geting web interface to work
Hi, i have installed CruiseControlRB 1.3.0. With no project added the web interface at localhost:3333 looks find. I have successfully added one of my projects (batch file which builds some c++ code) which is also building fine. But the web interface is no more working - i get the following message "Errno::EINVAL in Projects#index". I have attached a log (run with --trace) which
2009 Sep 10
1
undefined method `protect_against_forgery?'
When I use plugin ''railstree'' (http://www.hashcode.eti.br/?p=91) as following code: node = Node.new :label => menu_item.name, :link_to_remote => { :base => self, :update => "container", :url => {
2007 Sep 21
1
generating nested resource path
I have a nested resourced called attachments: (routes.rb) map.resources :content_campaigns do |content_campaigns| content_campaigns.resources :attachments, :member => { :download => :get} end But, I can''t seem to generate the new path after I create a new attachment: (attachments_controller.rb) format.xml { head :created, :location => attachment_url(@attachment) }
2005 Jun 22
0
HTTP_HOST in rails
Hi All, Rails 0.12.1 doesn''t seem to be able to handle requests that don''t provide the HTTP_HOST variable in my environment (apache2/fcgi). This isn''t really a huge deal in practice, but it points to an actual oversight in the code, or perhaps in my config. Thoughts? ActionView::TemplateError (undefined method `+'' for nil:NilClass) on line #1 of
2009 Feb 09
0
submit_to_remote change from 2.1 to 2.2 now gives wrong number of arguments
Hi, this snippet <%= submit_to_remote(''create_button'', ''Add Phone'', :submit => "phone_form", :url => send( "#{@phonable_type.to_s.downcase.singularize}_phones_path", @phonable_id),
2007 Sep 10
6
RSpec view spec writing problem (unable to generate url_for in RESTful resource link_to)
Thanks, first, to everyone who''s asked and answered questions on this list, and to the creators of RSpec - it is all very helpful. I''ve searched the mailing list, and had a couple 2hr googling sessions that didn''t help me find an answer. I''ve run into a problem getting my first non-trivial view spec to run. I get an error when trying to generate a link_to()
2006 Jun 02
0
Warning messages after upgraded from rails 1.0 to 1.1
Just upgrade from rails 1.0 to 1.1 Everytime I run the unit and/or functional tests, I got the following messages. Is there something I need to do to remove? I am not sure where to start. Thanks in advance. /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/validations.rb:334: warning: `*'' interpreted as argument prefix
2006 Nov 04
0
rake db:migrate is semi-broken
Whenever I run rake db:migrate I get the following "error": antrover:~/Sway/Projects/mi7/branches/sway_dev_mi7 dhoefler$ rake db:migrate (in /Users/dhoefler/Sway/Projects/mi7/branches/sway_dev_mi7) /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/validations.rb:334: warning: `*'' interpreted as argument prefix
2006 Apr 14
1
rake test errors
I have Rails 1.1.2, ruby 1.8.4 and gentoo linux running kernel 2.6.15. Here are the errors: gregg@gregg2 ~/user/DMS $ rake test (in /home/gregg/user/DMS) /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/ ordered_options.rb:2: warning: method redefined; discarding old []= /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/ ordered_options.rb:11: warning: method
2007 Jul 12
1
form_tag doesn't accept a string anymore in edge rails?
So, here''s the offending line. Note that I''m using edge rails. form_tag verifications_path(@user), :method => :post do verifications_path(@user) returns a string like "/users/3/ verifications". That eventually gets sent to url_for, which expects a hash. And then it blows up. It''s especially disconcerting since the documentation shows form_tag as
2006 Jan 09
1
testing UrlHelper in ActionMailer
Hi All, So I found a helpful web page that explained how I could use things like url_for in my mails: http://wiki.rubyonrails.com/rails/pages/HowtoUseUrlHelpersWithActionMailer However, I can''t test them properly. The problem is that when I create a controller in my unit tests and pass it into the ActionMailer, it''s not a real controller, set up as a controller is when it is