Problem rendering pages in a subfolder under views

17 views
Skip to first unread message

Dana

unread,
Oct 22, 2013, 6:45:22 PM10/22/13
to serve...@googlegroups.com
When I point to a view which lives in a folder under the views DIR, I get an error. Is there something I am missing? I can do this: <a href='downloads' > downloads </a> (files lives in the /views DIR) I I am getting a file not found error when doing this: <a href='utl/downloads'> downloads </a>

Any ideas?

Dana


Jess Brown

unread,
Oct 22, 2013, 9:31:16 PM10/22/13
to serve...@googlegroups.com
Does it work if you do this:

<a href='/utl/downloads'> downloads </a>

Note the forward slash before utl.

If not, what error are you getting?


Jess Brown
Brown Web Design


--
--
Serve Users Group
Mailing List: http://groups.google.com/group/serve-users/
Project: http://github.com/jlong/serve/
 
---
You received this message because you are subscribed to the Google Groups "Serve Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to serve-users...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Dana

unread,
Oct 22, 2013, 9:54:44 PM10/22/13
to serve...@googlegroups.com
Still no go. Getting this:

RuntimeError at /pages/newpage

File does not exist nil

Ruby/Users/danam/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/serve-1.5.2/lib/serve/view_helpers.rb: in render_template, line 149
WebGET localhost/pages/newpage

Jump to:

Jess Brown

unread,
Oct 23, 2013, 9:57:38 PM10/23/13
to serve...@googlegroups.com
Humm, so you have a file at: views/pages/newpage.html.erb


Jess Brown
Brown Web Design


Dana

unread,
Oct 23, 2013, 10:36:18 PM10/23/13
to serve...@googlegroups.com
Yep. Trying to access it. 
You received this message because you are subscribed to a topic in the Google Groups "Serve Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/serve-users/OCdszYNSHJY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to serve-users...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.


--
Dana Martinelli
412.983.4894
danaia.com

Jess Brown

unread,
Oct 24, 2013, 10:32:56 AM10/24/13
to serve...@googlegroups.com
humm, there's gotta be something off here, can you push it to github or share it with me somehow?


Jess Brown
Brown Web Design


Reply all
Reply to author
Forward
0 new messages