[Rails] Multiline graph in rails in pdf file

2013-06-05 Thread snlsinghal . 9
Hi all, I want to give export option in my application that will export PDF file and it should consist multi-line graph. How can i do this in ruby on rails. I install prawn-graph. But I dont think it works for multiline chart. It works only for single line chart. What gem should i install

Re: [Rails] Multiline graph in rails in pdf file

2013-06-05 Thread Arvind Vyas
prawn will work , it also have some good document first read those :) On Wed, Jun 5, 2013 at 12:48 PM, snlsingha...@gmail.com wrote: Hi all, I want to give export option in my application that will export PDF file and it should consist multi-line graph. How can i do this in ruby on

[Rails] Re: Ruby 2.0 is running, but Rails 4 doesn't see it.

2013-06-05 Thread Alphonse 23
reinstalled rvm and rubygems. Now everything works.. Case closed. Thank you everyone for the help. You have my eternal gratitude. -- 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

[Rails] Re: Are flash[] values kept between redirect actions in integration tests?

2013-06-05 Thread Robert Walker
Wins Lin wrote in post #366: My question is, are flash values kept in integration test? Does it have to be true here or the above behavior is correct? The Rails guide has a clear explanation of the flash: http://guides.rubyonrails.org/action_controller_overview.html#the-flash Yes, the

Re: [Rails] Re: Are flash[] values kept between redirect actions in integration tests?

2013-06-05 Thread Otavio Nestares
Use flash.now[:notice] !! Best Em quarta-feira, 5 de junho de 2013, Robert Walker escreveu: Wins Lin wrote in post #366: My question is, are flash values kept in integration test? Does it have to be true here or the above behavior is correct? The Rails guide has a clear explanation

[Rails] Re: Re: Are flash[] values kept between redirect actions in integration tests?

2013-06-05 Thread Robert Walker
Otavio Nestares wrote in post #439: Use flash.now[:notice] !! Wouldn't that just make matters worse? flash.now makes the flash available in the current request. It does not make it persists across requests. Use flash.now when you want render the template directly without a new request.

[Rails] Link_to image_tag popup

2013-06-05 Thread Avi
Hello All, How can I add a popup in link_to image_tag? I am trying as :- %= link_to image_tag(@user.avatar.url(:small)), '/users/edit', :popup=['original_image', 'height=700,width=900'] % It goes to the edit page. But it doesn't opens popup. Is this the correct way to call a popup? How can I

Re: [Rails] Re: How about add a method to truncate a long text more smart?

2013-06-05 Thread soffolk
On June 4, 2013 at 10:58:25 PM, Peter (ppgeng...@gmail.com) wrote:  You might checkout truncate_html and consider combining your functionality into there as options. \Peter It seems use for content contains html tag, while i process for pure string without html tag -- You received this

Re: [Rails] Link_to image_tag popup

2013-06-05 Thread buyzlots
Are you looking to open that link in a new tab? if so us :target = _blank… or are you looking for a lightbox style thing? If so checkout http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/ its very easy to use. Matt On Jun 5, 2013, at 10:39 AM, Avi

[Rails] Re: Nokogiri::XML methods example

2013-06-05 Thread Love U Ruby
Eduardo Figarola wrote in post #343: Hi, the examples will be atached to the answer, I hope you can get a better idea of this methods. Regards, Eduardo Figarola. can anyone tell me what the wrong I did here? node = Nokogiri::XML::Node.new( pThis text contains supsuperscript/sup

Re: [Rails] Re: Nokogiri::XML methods example

2013-06-05 Thread Colin Law
On 5 June 2013 19:10, Love U Ruby li...@ruby-forum.com wrote: Eduardo Figarola wrote in post #343: Hi, the examples will be atached to the answer, I hope you can get a better idea of this methods. Regards, Eduardo Figarola. can anyone tell me what the wrong I did here? node =

[Rails] Precompile with compression in development

2013-06-05 Thread Michael Kastner
Hi, I'd like to do precompilation with compression in development mode. I've set config.assets.js_compressor = :uglifier config.assets.css_compressor = :sass in development.rb. But compression only seems to work in production mode, is that right? Michael Kastner -- You received this

[Rails] Open new page with rails link_to and bootstrap modal

2013-06-05 Thread Eduardo Oliveira Almeida
I'm having some problem to load a new page in a modal with bootstrap on Rails. Here is the important part on my eventos/index.html.erb div id=content % @eventos.each do |evento| % !--Bar 2-- div class=mosaic-block bar2 **%= link_to(evento, :class=mosaic-overlay, :id = evento ,

[Rails] [JOBS] Rails Developer for Start-up, Full-time, Work from home

2013-06-05 Thread One Click Politics
Hi, I tried to post this earlier but it doesn't seem to have posted...apologies if this is the second posting... One Click Politics is a start-up focused on political communication and data. We're seeking a full-time developer with the following skills: Top priority is experience with Ruby

Re: [Rails] Re: Re: Re: accidentally created a rails app in the home folder

2013-06-05 Thread Tamara Temple
mark ronay li...@ruby-forum.com wrote: well, i tried rvm implode and a fresh install using these directions: http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/ still same problem: mwr@mwr-Ubuntu:~$ ls app db Documents log Projects script tmp build Desktop

Re: [Rails] How about add a method to truncate a long text more smart?

2013-06-05 Thread Tamara Temple
soffolk zlx.s...@gmail.com wrote: I mean the result use content_truncate is more meaningful for user So, this would be something you'd use in a view? If so, it should go in a helper. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To

[Rails] Re: Re: Re: Re: accidentally created a rails app in the home folder

2013-06-05 Thread mark ronay
Tamara Temple wrote in post #488: mark ronay li...@ruby-forum.com wrote: another, please change to a non-Rails directory first. everyone for your help and if I fix it I will post here in case it helps someone else. Is there some reason you can't move or delete the files you created?

[Rails] Re: Precompile with compression in development

2013-06-05 Thread mike
On Wednesday, June 5, 2013 4:58:16 AM UTC-4, Michael Kastner wrote: Hi, I'd like to do precompilation with compression in development mode. I've set config.assets.js_compressor = :uglifier config.assets.css_compressor = :sass in development.rb. But compression only seems to work in

Re: [Rails] How about add a method to truncate a long text more smart?

2013-06-05 Thread soffolk
more than that, you can use it to produce your summary and save it into database. I think it's a universal function, and we need not to limit it. just expand String On June 6, 2013 at 6:27:21 AM, Tamara Temple (tamouse.li...@gmail.com) wrote: soffolk zlx.s...@gmail.com wrote: I mean the

Re: [Rails] Re: Re: Re: Re: accidentally created a rails app in the home folder

2013-06-05 Thread Tamara Temple
mark ronay li...@ruby-forum.com wrote: Oh I did delete them and everything is going great now. Yay!! \o/ Welcome to Rails!! I was unaware that they had been created in my home directory, as I had not ever run *rails new* successfully and didnt know what to look for. So the whole thread

Re: [Rails] How about add a method to truncate a long text more smart?

2013-06-05 Thread Tamara Temple
soffolk zlx.s...@gmail.com wrote: more than that, you can use it to produce your summary and save it into database. I think it's a universal function, and we need not to limit it. just expand String If you want to, go ahead. Put it in a module, then send :include to String with your

[Rails] Issues that could benefit from a bounty reward?

2013-06-05 Thread David Rappo
Hey all, I’m the founder of Bountysource.com. We ran a newsletter contest a few weeks ago where we asked our users to pick their 3 favorite Open Source projects. The winning projects would get bounties placed on a few top issues, and Ruby on Rails came in first place, earning a $300 bounty

Re: [Rails] How about add a method to truncate a long text more smart?

2013-06-05 Thread soffolk
On June 6, 2013 at 10:54:10 AM, Tamara Temple (tamouse.li...@gmail.com) wrote: If you want to, go ahead. Put it in a module, then send :include to String with your module name. If you really did not want suggestions, why did you ask for them? If you already have an answer you are settled