Google Groups Home
Help | Sign in
inherit_views question (perhaps a little off topic)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Tim Harding  
View profile
 More options Jun 19, 9:40 am
From: Tim Harding <tim.hard...@gmail.com>
Date: Thu, 19 Jun 2008 06:40:56 -0700 (PDT)
Local: Thurs, Jun 19 2008 9:40 am
Subject: inherit_views question (perhaps a little off topic)
Hi,

is there and inherit_views group? If so where?

If not I wonder if you might not mind a question here.

When I make a call to display an inherited view from a functional test
or a browser it is working fine:

GET :edit, :id => 1 or from a browser http://localhost:3000/admin/works/1/edit

things go very well.

When I call GET /admin/works/1/edit from an integration test or from
an rspec user story inherited partial templates are not found.

views/base/edit.html.erb
views/base/_action_bar.html.erb
views/works/_form.html.erb

edit.html renders action_bar and form

if i create views/works/action_bar things are all okay from the
integration test.

see: http://pastie.org/217977 for the error.

thank you.

-tim


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Harding  
View profile
 More options Jun 19, 10:36 am
From: "Tim Harding" <tim.hard...@gmail.com>
Date: Thu, 19 Jun 2008 15:36:22 +0100
Local: Thurs, Jun 19 2008 10:36 am
Subject: Re: inherit_views question (perhaps a little off topic)

more to this:
render_partial_with_inherit_views is called from the within the development
server context but not from an integration test context.

-tim


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ian White  
View profile
 More options Jun 19, 10:41 am
From: Ian White <ian.w.wh...@gmail.com>
Date: Thu, 19 Jun 2008 15:41:40 +0100
Local: Thurs, Jun 19 2008 10:41 am
Subject: Re: inherit_views question (perhaps a little off topic)

Hi Tim,

This is a bug in rspec.

http://rspec.lighthouseapp.com/projects/5645/tickets/391-rspec-rails-...

Basically, rspec munges render_partial so that it short circuits any  
aliases.

Here's a patch that fixes the issue on rspec
http://github.com/ianwhite/rspec-rails/commit/f6ac8cc8c37b9adf7167aa4...

Cheers,
Ian

On 19 Jun 2008, at 15:36, Tim Harding wrote:

--
Argument from Design--We build web applications
Western House 239 Western Road Sheffield S10 1LE
Mob: +44 (0)797 4678409 | Office: +44 (0)114 2667712
<http://www.ardes.com/> | <http://blog.ardes.com/ian>

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Harding  
View profile
 More options Jun 19, 10:59 am
From: "Tim Harding" <tim.hard...@gmail.com>
Date: Thu, 19 Jun 2008 15:59:53 +0100
Local: Thurs, Jun 19 2008 10:59 am
Subject: Re: inherit_views question (perhaps a little off topic)

Hi Ian, thank you very much.
-Tim


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google