Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8379717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:15:57+00:00 2026-06-09T16:15:57+00:00

I am trying to create a WIKI page using rails 3. I am following

  • 0

I am trying to create a WIKI page using rails 3. I am following a tutorial by http://garrickvanburen.com/archive/how-to-build-a-wiki-with-ruby-on-rails-part-1/

I believe his tutorial is in rails 2 so i am having to change the coding around. I am on section 6 and have inputed the coding inside app/views/revisions/new.html.erb.Once I load the server in localhost/revisions/new i get the following error-

NoMethodError in RevisionsController#new

undefined method `[]’ for nil:NilClass

Rails.root: /home/whitey7/wiki
Application Trace | Framework Trace | Full Trace

app/controllers/revisions_controller.rb:30:in `new’

when I pull up the revisions_controller file and view line 30 it seems correct or correct according to what was in the tutorial. Everything else seems to work fine but this. I can’t seem to find the answer or how to fix this. Any help or some guidance would be greatly appreciated. The code is below thats listed in the revisions_controller file. Thanks all!!

  # GET /revisions/new
  # GET /revisions/new.json


def new
    @revision = Revision.new

    @revision.update_attribute('person_id', 
      Person.find_or_create_by_name(params[:person][:name]).id) **#Inputed from Tutorial.**

    respond_to do |format|
      format.html # new.html.erb
      format.json { render json: @revision }
    end
  end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T16:15:59+00:00Added an answer on June 9, 2026 at 4:15 pm

    params[:person] isn’t set. If you just want to avoid the error in this case, change to:

    unless params[:person].nil?
      @revision.update_attribute('person_id', 
        Person.find_or_create_by_name(params[:person][:name]).id)
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to follow the example on http://developers.cloudmade.com/wiki/iphone-sdk/Create_basic_Local_Search_and_Geocoding_app . The example from svn provided
I am trying to create a new wiki page programmatically with MoinMoin. But it
I'm trying create a bot which automatically likes Facebook posts. Using Mechanize I can
Ok so I am trying create a login script, here I am using PHP5
I'm trying to create a virtual wiki but I already struggle with In your
I am trying to migrate some existing blog entries into our confluence wiki using
I'm trying to create a go board using opengl. To do this, I'm trying
I'm trying to create a Comments section in my wiki. There's one solution on
I am using Sharepoint 2010, and trying to create a blank site for development.
I am trying to create a github wiki for my project. But I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.