SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Jun 2008
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Chapter 6 page 160 Simply Rails 2

    I am getting a "Missing template stories/new.html.erb in view path /Users/corp/shovell/app/views"

    I created the "new.html.erb" the way the book says and I do not understand why it cant find a file in the path that does exist. Can anyone help?

  2. #2
    SitePoint Zealot daveporter's Avatar
    Join Date
    Mar 2002
    Location
    Perth, Western Australia
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi There,

    The file should actually be in the stories folders within the views folder.

    HTH - Dave Porter

  3. #3
    SitePoint Member
    Join Date
    Jun 2008
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The location the file was saved in was shovell/app/views/stories.

  4. #4
    SitePoint Member
    Join Date
    Jun 2008
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If I type into the console "ls /Users/corp/shovell/app/views/stories" I receive the following output:

    index.html.erb new.html.erb

  5. #5
    SitePoint Member
    Join Date
    Jun 2008
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I deleted my file and copied/pasted the file over. Now the link works. Moving on


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •