Ruby on Rails Friday, March 13, 2015

Wierd. I do not see it this time.
Maybe a hickup in a server,

But now I see another wierd error.

I have a page new who looks like this :

<h1>New product</h1>
<%= render 'form' %>
<%= link_to 'Back', products_path %>

Which leads to a file named _form.html who looks like this :

<%= form_for(@product) do |f| %>
  <% if @product.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@product.errors.count, "error") %> prohibited this product from being saved:</h2>
      <div class="row">
    <div class="span9">
     <div class="register">
      <div class="titleHeader clearfix">
       <h3>Voer nieuw speelgoed in </h3>
      </div><!--end titleHeader-->
      <form method="post" action="http://egythemes.com/shopfine/page" class="form-horizontal">
       <h4>&nbsp;&nbsp;&nbsp;&nbsp;1. Algemene informatie </h4>
       <div class="control-group ">
           <label class="control-label" for="inputFirstName">Nummer speelgoed: <span class="text-error">*</span></label>
           <div class="controls">
             <input type="text" id="inputFirstName">
            
           </div>
       </div><!--end control-group-->
       <div class="control-group ">
           <label class="control-label" for="inputLastName">Naam speelgoed: <span class="text-error">*</span></label>
           <div class="controls">
             <input type="text" id="inputLastName">
            </div>
       </div><!--end control-group-->
       <div class="control-group">
           <label class="control-label" for="inputEMAdd">Omschrijving:  <span class="text-error">*</span></label>
           <div class="controls">
             <input type="text" id="inputEMAdd" >
           </div>
       </div><!--end control-group-->
       
       <h4>&nbsp;&nbsp;&nbsp;&nbsp;2. Koop informatie </h4>
       <div class="control-group">
           <label class="control-label" for="inputCompany">Bedrijf:<span class="text-error">*</span></label>
           <div class="controls">
             <input type="text" id="inputCompany">
           </div>
       </div><!--end control-group-->
       <div class="control-group">
           <label class="control-label" for="inputCompanyID">Bedrag:<span class="text-error">*</span></label>
           <div class="controls">
             <input type="text" id="inputCompanyID">
           </div>
       </div><!--end control-group-->
       <div class="control-group">
           <label class="control-label" for="inputFirstAdd">Datum aankoop: <span class="text-error">*</span></label>
           <div class="controls">
             <input type="text" id="inputFirstAdd">
           </div>
       </div><!--end control-group-->
       <div class="control-group">
           <div class="controls">
               <button type="submit" class="btn btn-primary">Opslaan</button>
           </div>
       </div><!--end control-group-->
                       
       
      </form><!--end form-->
     </div><!--end register-->
    </div><!--end span9-->

    
   </div><!--end row-->
<% end %>

But as soon as I do products/new I see this error message :

/home/action/workspace/finance/app/views/products/_form.html.erb:85: syntax error, unexpected keyword_ensure, expecting keyword_end /home/action/workspace/finance/app/views/products/_form.html.erb:87: syntax error, unexpected end-of-input, expecting keyword_end


Roelof






Op vrijdag 13 maart 2015 17:09:58 UTC+1 schreef Colin Law:
On 13 March 2015 at 15:29, Roelof Wobben <rwo...@hotmail.com> wrote:
> Hello,
>
> I working on a new project and made all the templates ready.
>
> But as soon as I do rails s I see this output :
>
> Started GET "/" for 82.74.205.109 at 2015-03-13 15:25:30 +0000
> Killed

You have not said whether this is a random event or whether it happens
every time.
Assuming it is repeatable can you copy/paste the full output from the
server window please.  From the start of the server.  Obviously
restart the server and then do it so as to keep it short.

Anything in /var/log/syslog (or wherever your equivalent system log
is) at the time it happens?

Colin

>
> Anyone a idea how to find out what can be the reason behind this ?
>
> Roelof
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/ec65a635-a217-4db0-a99f-a2d0ea6644d1%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/0cb5ae87-396d-40e1-8840-11b572e6cf25%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment