Hi SD Ruby,

I am currently in the process of learning RoR (sorry if this following 
question is dumb).

One of the tutorials I am using is Treehouse's Build a simple Ruby on Rails 
application<http://teamtreehouse.com/library/build-a-simple-ruby-on-rails-application>
.

For this tutorial, they use Ruby 1.9 and Rails 3.2 while I run Ruby 2.0 and 
Rails 4.0.

There have been a couple of gaps between what they show and what I was 
supposed to do, but I could deal with it.

The one I could not handle, so far, regards horizontal forms.

Here is what is in my _form.html.erb file:

 

<%= simple_form_for(@status, html: {class: "form-horizontal"}) do |f| %>

  <% if @status.errors.any? %>

    <div id="error_explanation">

      <h2><%= pluralize(@status.errors.count, "error") %> prohibited this 
status from being saved:</h2>


      <ul>

      <% @status.errors.full_messages.each do |msg| %>

        <li><%= msg %></li>

      <% end %>

      </ul>

    </div>

  <% end %>


  <%= f.input :content %>

  <div class="form-actions">

    <%= f.button :submit %>

  </div>

<% end %>

And here is what shows up on my app (which is definitely not a horizontal 
form):

<https://lh4.googleusercontent.com/-4UJSNnprCiI/U1FmtEPKCoI/AAAAAAAAARY/MWrdnyOH9qI/s1600/horizontal+form+not+working.png>

I have read a couple of articles saying that Simple form was not working 
very well with Bootstrap 3, and it seems there are some modifications to 
bring to the initializers (modifications that I could not implement so far).

Do you have any idea of how to solve this problem?

Let me know if you need additional elements or pieces of code.

Thanks very much in advance.

-- 
-- 
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
--- 
You received this message because you are subscribed to the Google Groups "SD 
Ruby" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to