search for: contactscontroller

Displaying 6 results from an estimated 6 matches for "contactscontroller".

Did you mean: contactcontroller
2012 Oct 10
8
link_to with additional data
...tacts_path, :data => {:foo => ''bar''} The generated html link: <a href="/contacts <http://localhost:3000/contacts>" data-foo="bar">contacts </a> But I don''t receive the foo attribute in the params object in the show action of ContactsController. If I add {:method => :post} to link_to, then it routes to the create action of the ContactsController but again, foo is missing. = link_to "Contacts", contacts_path, {:method => :post, :data => {:foo => ''bar''}} generates: <a href="/contacts &lt...
2005 Nov 19
0
upload_status_for undefined method?
Hi all, I''m trying to put in an upload progress bar for my application, and when I try: class ContactsController < ApplicationController auto_complete_for :contact, :name upload_status_for :create ... I get this error: undefined method `upload_status_for'' for ContactsController:Class How can that be? Isn''t progress bar part of ActionView, which is installed by default with rails...
2007 Apr 21
0
Auto_complete
Hi Guys, Am building an app in rails1.2.1 and wanted to use the auto_complete. So i have it set out as follows. # view <%= text_field_with_auto_complete :contact, :first_name %> # controller auto_complete_for :contact, :first_name But this is all l get NoMethodError in ContactsController#index undefined method `auto_complete_for'' for #<ContactsController: 0x3384570> RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace app/controllers/contacts_controller.rb:8:in `index'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.13.1/lib/ a...
2006 Apr 24
3
Rails Recipes Book: Routing Error
Hi, I''m working on the first rails recipe, InPlaceEditing, and following the instructions very carefully. After generating the scaffold for Contact, I then go to the page, thus: http://localhost:3000/contacts/ I get this error: Routing Error Recognition failed for "/contacts/" What should I be checking for to resolve this problem? Thanks. -- Posted via
2007 Mar 22
0
Safari 2.0.4 display of raise is incorrect
Using Mac G4 Quicksilver 867mhz Mac OS X 10.4.8 Ruby 1.8.5 and Rails 1.2.2 I''m new to RoR so I cannot quite understand why Safari displays a raise action this way RuntimeError in Admin contactsController#set_contact_postcode {&quot;action&quot;=&gt;&quot;set_contact_postcode&quot;, &quot;id&quot;=&gt;&quot;2&quot;, &quot;value&quot;=&gt;&quot;M1B 5Y7&quot;, &quot;controller&quot;=&gt;&quot;admin_contacts&quot;} Why wi...
2012 Aug 13
9
Using Jquery plugin "tokenInput" with rails
Hi, I made a contact manager app using rails. I added TokenInput plugin to introduce an instant contact search functionality in it. Tried following a railscast http://railscasts.com/episodes/258-token-fields but have been struggling with it for a while. Following is the code I use in my view <%= form_tag({:action => ''show'', :id => @contact_tokens}, :remote =>