English 中文(简体)
为什么不把内容放在网页上。 html?
原标题:Why content_for html is not rendered in page.html?

我正试图测试一位在内容上——从受访的管制者的行动来看——已经作出的选择。

What I ve noticed is that when I debug page.html, I don t see the content that is rendered into yields via content_for, instead, I see only the html that is originally in the application.html.haml.

Is it a matter of waiting for page to get fully loaded ? I am using: let(:page_view) { Capybara::Node::Simple.new(@response.body) }

任何想法?

问题回答

页: 1

render_views 




相关问题
Remove ActiveRecord in Rails 3

Now that Rails 3 beta is out, I thought I d have a look at rewriting an app I have just started work on in Rails 3 beta, both to get a feel for it and get a bit of a head-start. The app uses MongoDB ...

When will you upgrade your app to Rails 3? [closed]

Now that the Rails 3 beta is here, let s take a little straw poll. Please tell us briefly what your application does and when you will upgrade it to Rails 3. Or, if you re not planning on upgrading ...

Bundler isn t loading gems

I have been having a problem with using Bundler and being able to access my gems without having to require them somewhere, as config.gem used to do that for me (as far as I know). In my Rails 3 app, I ...

bypass attr_accessible/protected in rails

I have a model that, when it instantiates an object, also creates another object with the same user id. class Foo > ActiveRecord::Base after_create: create_bar private def create_bar Bar....

concat two fields activerecord

I m so used to oracle where you can simply concat(field1, , field2) but if I m using activerecord to find the field1 and field2, and I need a space in between, how do I accomplish this? Cheers ...

热门标签