html - Render a 'static' container inside a form_for block -


i creating application form , wanting embed/render long text(static html)page "inside" form scrolling container. i've saved partial in /app/views/layouts directory _membershipagreementv_1.html.erb

the partial renders fine outside of form_for block when inside page/form fails load.

snippet partial _membershipagreementv_1.html.erb

<div class="membershipagreement">     <div class="container">         <div style="height: 400px; overflow: auto; padding: 5px">     <h2>eligibility , membership.</h2> 

(lllloooonnnggggg long put in form imo) . . .

snippet new_app view

<div class="row">    <div class="span6 offset3">       <%= form_for (@member), :url => {:action => "approve"}, :html => {:method => "put"} |f| %> . . .         <%= f.label :email, "email address" %>         <%= f.text_field :email %>          <%= render 'layouts/membershipagreement_v1'%>          <%= f.label :releaseip, "ip address connecting from" %>         <%= f.text_field :releaseip, :value => request.remote_ip , :readonly => true%> . . . 

the error given when site is

missing partial layouts/_membershipagreement_v1 {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :jbuilder, :coffee]}. searched in: * "/home/stephen/desktop/projects/club_app/app/views"

following other qandas on embedding partials in forms can find embedding form partials form , linking data/namespaces there nothing 'link'/transfer between form , 'static' html inside scroll box. what/how partial render inside form?

thanks


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -