[Rails] RMagick Annotate - interline spacing and its relation with the font

2014-06-13 Thread Kevin Peterson
Hi, RMagick Documentation about interline_spacing mentions - A numeric value. If positive, inserts additional space between lines. If negative, removes space between lines. The amount of space inserted or removed depends on the font. The problem is that one can not achieve the exact text as

[Rails] Calling HTML snippet from another HTML file

2014-06-13 Thread Damián M. González
Hi guys. I'm relatively new to rails, not to ruby. Was wondering how can I call an HTML file(perhaps *.erb.html) from another HTML file. I'm writing HTML in the application layout(application.html.erb) and I want to abstract some parts like the footer and the upper part to another file, for easy

Re: [Rails] Calling HTML snippet from another HTML file

2014-06-13 Thread Ganesh Ranganathan
On Fri, Jun 13, 2014 at 5:03 PM, Damián M. González li...@ruby-forum.com wrote: I want to abstract some parts like the footer and the upper part to another file, for easy reading and order. ​This can be achieved by layouts. In the layouts/application.html.erb file you can call different

Re: [Rails] Calling HTML snippet from another HTML file

2014-06-13 Thread Colin Law
On 13 June 2014 12:33, Damián M. González li...@ruby-forum.com wrote: Hi guys. I'm relatively new to rails, not to ruby. Was wondering how can I call an HTML file(perhaps *.erb.html) from another HTML file. I'm writing HTML in the application layout(application.html.erb) and I want to abstract

[Rails] Re: Calling HTML snippet from another HTML file

2014-06-13 Thread Damián M. González
Thank you Ganesh and Colin for the answers, very accurated. I really apreciate it. -- Posted via http://www.ruby-forum.com/. -- 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

[Rails] Re: ActiveModel Serailizers, how can I load it and why do I need to?

2014-06-13 Thread mike2r
On Thursday, June 12, 2014 10:18:49 AM UTC-4, Ruby-Forum.com User wrote: Noobie here. The gist of my problem is this. If I move from serializer file from app/serializers/ to app/models/ then everything works fine. My JSON API will output my data according to my serializer. However, if I

[Rails] Re: SerializationTypeMismatch when retrieving (not: storing) object

2014-06-13 Thread mike2r
On Thursday, June 12, 2014 8:41:06 AM UTC-4, Ruby-Forum.com User wrote: I don't understand the following example from the ActiveRecord::Base section in http://api.rubyonrails.org/ : == class User ActiveRecord::Base serialize :preferences, Hash end user =