Rails input size is 30 chars
Contact me at LinkedIn  RailsZilla at Facebook  RailsZilla at twitter   google +1  Contact me at Xing  connect me at github

Rails input size is 30 chars

Posted in coffee break, Rails

Just a quick fix, but leads often to confusion … Let’s say we have a form 1<%= form_for link , url:link_path(link) , remote:true do |f| -%> now we want to insert an input field like 1<%= f.text_field :email, placeholder:’Email’, :title => ‘email’ %> this will will give you a HTML like this 1<input type="text" title="email" […]

Tags: , , , , , ,

Ruby on Rails mobile view

Posted in coffee break

Finally I had enough time at the weekend to care about my blog and the mobile views. My blog now detects devices like iPhones, iPads, Android & and more, serving its optimized theme instead of my regular desktop theme. You can always switch back to standard/desktop theme if you wish (the button is in the […]

Tags: ,

Copyright © 2011-2017  - RailsZilla – Ruby on Rails tutorials, tips and tricks All rights reserved. | Imprint | Privacy