search for: contactcontroller

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

2009 Feb 24
5
undefined method `model' for ContactController:Class
Hi , I''m getting "undefined method `model'' for ContactController:Class" Basically this is my first RoR application. Can you please somebody help to resolve this. Steps I have followed, 1)ruby script/generate model contact 2)ruby script/generate controller contact 3) vim app/controllers/contact_controller.rb class ContactController < ApplicationController...
2006 Aug 05
1
"uninitialized constant" error when I go to app base URL???
...cts" map.connect '':controller/:action/:id'' ========================================================== Processing Base#index (for 60.241.102.61 at 2006-08-04 17:20:04) [GET] Session ID: 3e12c1deb7bd9ebfcad74bdd7924d7d5 Parameters: {} NameError (uninitialized constant ContactController): /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:100:in `const_missing'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in `const_missing'' generated/routing/recognition.rb:4:in `recognize_path...
2006 Jun 05
1
Action Mailer contact form
...r chapter of the "Agile Web Development with Rails" book as a pattern to develop the send e-mail portion. I am having trouble getting it working and was hoping someone could point me in the right direction. Thanks. ==================================================== 1. class ContactController < ApplicationController 2. 3. def send_msg 4. @contact = Contact.new(params[:contact]) 5. if @contact.valid? 6. contact = get_contact 7. email = ContactMailer.create_confirm(contact) 8. render(:text => "<pre>" + email.encoded + "<pre>"...
2007 Sep 16
12
rspec_todo -- spec''ing backwards
...#------------------------------------------------------------ # File: app/controllers/contact_controller_spec.rb #------------------------------------------------------------ require File.dirname(__FILE__) + ''/../spec_helper'' describe "A ContactController" do it "should do something sensible with index." it "should do something sensible with thank_you." end
2007 Apr 18
1
Scaffolding Specs
I just wrote a really simple tool that cranks out spec scaffolds for Rails apps. It''s new and pretty simple, but you might find it useful: http://calicowebdev.com/blog/show/13 --steve
2009 Sep 25
3
NoMethodError : undefined method `stringify_keys!' for "2":String
Hi, I have been trying to create a small Rails application. In one of the steps, I am facing this error as "NoMethodError in ContactController#update ...... undefined method `stringify_keys!'' for "2":String". Let me give a brief description of the application. This application is to Create, View and Update contacts. The problem came when updating a record. The "Update" action in controller file loo...
2006 Jul 19
7
Email Form for Contact Page
Can anyone point me to or provide me with code or a tutorial (preferably a tutorial) for creating simple contact forms where the data is sent over email to a specific email address. I have search all over the internet and there doesn''t see to be anything anywhere. Thanks In Advance, Alex. -- Posted via http://www.ruby-forum.com/.