Re: [Rails] Generate MS Word files in Rails

2015-03-26 Thread Colin Law
On 26 March 2015 at 08:58, Ganesh Ranganathan ganesh.ranganathan...@gmail.com wrote: On Thu, Mar 26, 2015 at 2:22 PM, Colin Law clan...@gmail.com wrote: If you just want to download, open and print then I recommend using pdf. Several possibilities are available for this: I looked at PDF

Re: [Rails] Generate MS Word files in Rails

2015-03-26 Thread Colin Law
On 26 March 2015 at 08:11, Ganesh Ranganathan ganesh.ranganathan...@gmail.com wrote: On Wed, Mar 25, 2015 at 7:32 PM, Scott Ribe scott_r...@elevated-dev.com wrote: 1) You might want to use RTF templates instead. It's a format you can more easily search for your markers and modify, and Word

Re: [Rails] (undefined method `each' for nil:NilClass) while doing Getting started tutorial

2015-03-26 Thread Colin Law
On 25 March 2015 at 22:12, Med Potter medya...@gmail.com wrote: I followed every line of the tutorial but I get this error Showing /home/ubuntu/blog/app/views/articles/index.html.erb where line #9 raised: undefined method `each' for nil:NilClass % @articles.each do |article| % tr

Re: [Rails] Generate MS Word files in Rails

2015-03-26 Thread Ganesh Ranganathan
On Thu, Mar 26, 2015 at 2:22 PM, Colin Law clan...@gmail.com wrote: If you just want to download, open and print then I recommend using pdf. Several possibilities are available for this: ​I looked at PDF too but the users might want to make minor changes to the layout. The site is for

[Rails] Re: best way to map fields between rails product and an api client product

2015-03-26 Thread tonypm
Thank you for that, I am still building the client gem itself, but you did prompt me to look around a bit. Took a look at active resource, and the Schema and attributes stuff is going along the path I was looking for. I suspect that I might even be able to make ActiveResource work with the

Re: [Rails] Generate MS Word files in Rails

2015-03-26 Thread Marco Antonio Almeida
Hi Ganesh, I would also recommend you to take a look at RTF, but if like me the .docx was a requirement I would suggest you to take a look at the gem https://github.com/nickfrandsen/htmltoword. It's still in its early stages and doesn't support bulleted lists, but it's pretty simple to use and

Re: [Rails] Generate MS Word files in Rails

2015-03-26 Thread Scott Ribe
On Mar 26, 2015, at 2:11 AM, Ganesh Ranganathan ganesh.ranganathan...@gmail.com wrote: Does RTF pose any formatting challenges as compared to docx? Except bold, italics, bulleting my requirement doesn't need any advanced formatting. In that case, RTF should be quite easy to deal with.

[Rails] Re: New Rails project looking for beginners rails developers

2015-03-26 Thread Mark Howard
Are you still looking for others to learn with? On Tuesday, March 10, 2015 at 12:23:01 PM UTC-7, Olivier Batard wrote: Hello ! I'm new to the rails world, and I want to use and extend my knowledge and experience with the developement of a new Open Source project called Lemmy. The idea is

[Rails] ANNOUNCING a New Release of Jackbox

2015-03-26 Thread lha
9. ANNOUNCING a New Release of Jackbox. In this months release we have only fixed a couple of minor issues with name collisions for withdrawn injectors, and also cleaned up some of the code. We want to let everyone know that although we experienced a delay in our challenge anounucement, we

[Rails] Re: Help with habtm

2015-03-26 Thread Gm
Hi Colin, Thanks for the reply. Even if I use has many through, how can I populate the order field dinamically ? When I do this: def generate (1..5).each do questions.create(Question::SKELETON) end end Thank you. On Tuesday, March 24, 2015 at 3:50:37 PM UTC-3, Gm

Re: [Rails] Re: Help with habtm

2015-03-26 Thread Colin Law
On 26 March 2015 at 20:38, Gm javapla...@gmail.com wrote: Hi Colin, Thanks for the reply. Even if I use has many through, how can I populate the order field dinamically ? When I do this: def generate (1..5).each do questions.create(Question::SKELETON) end

[Rails] (undefined method `each' for nil:NilClass) while doing Getting started tutorial

2015-03-26 Thread Med Potter
I followed every line of the tutorial but I get this error Showing /home/ubuntu/blog/app/views/articles/index.html.erb where line #9 raised: undefined method `each' for nil:NilClass % @articles.each do |article| % tr td%= article.title %/td td%= article.text %/td if you

[Rails] Looking for feedback on gem

2015-03-26 Thread Dennis Charles
Hi there, I wanted to invite everyone to collaborate on an exciting project. About a month ago I started working on a gem that aims at making Rails real time and brings Active Record to the client. It's called Entangled and you can find it here: https://github.com/dchacke/entangled All

Re: [Rails] (undefined method `each' for nil:NilClass) while doing Getting started tutorial

2015-03-26 Thread Vivek Sampara
2 Possibilities. 1. Did you run your migrations 2. Did you restart your server after that ? On Thu, Mar 26, 2015 at 3:42 AM, Med Potter medya...@gmail.com wrote: I followed every line of the tutorial but I get this error Showing /home/ubuntu/blog/app/views/articles/index.html.erb where line

Fwd: [Rails] Generate MS Word files in Rails

2015-03-26 Thread Ganesh Ranganathan
On Wed, Mar 25, 2015 at 7:32 PM, Scott Ribe scott_r...@elevated-dev.com wrote: 1) You might want to use RTF templates instead. It's a format you can more easily search for your markers and modify, and Word will open it directly. ​Thanks for your answer Scott. Does RTF pose any formatting

[Rails] Re: asset packaging

2015-03-26 Thread dasibre
I'm not sure if you've seen this already, but it could probably help you along the jammit/rails 4 asset pipeline https://github.com/kmamykin/mamykin.com/blob/master/_posts/2011-07-05-switching-to-assets-pipeline-from-jammit.textile On Wednesday, March 25, 2015 at 10:58:21 AM UTC-4,