I'm just learning RoR. i'm setup with ruby 1.9.2.x and rails 3.1 and i'm getting the following error:
undefined method `hash_for_questions_path' for #<Module:0x103f781c8>
Question Object
ControllerCode:class Question < ActiveRecord::Base has_many :taxonomies has_many :tags, :through => :taxonomies has_one :seeker, :foreign_key => 'member_id', :class_name => 'member' has_one :guide, :foreign_key => 'member_id', :class_name => 'member' end
ask.html.erbCode:class QuestionsController < ApplicationController def index end def ask @question = Question.new end end
Code:<h1>Ask Your Question Below</h1> <% form_for @question do |f| %> <p>Question title: <%= f.text_field :question_title %></p> <p>Your Question: <%= f.text_field :question %></p> <p><%= submit_tag %></p> <% end %>



Reply With Quote
Bookmarks