[Rails] issue with to_json calling after to_a in test env

2011-11-17 Thread 0v3rr!d3
I got into some weird problem. I am on rails 3.1.1 and using mongoid 2.3.3 Here is what I did. When I did: @line.stations.asc(:created_at).to_a returned [#WorkStation _id: 4ec5ecd3cf6e890e3a1e, _type: WorkStation, created_at: 2011-11-18 05:27:47 UTC, updated_at: 2011-11-18 05:27:47 UTC,

[Rails] Re: Using wget in Rails controller

2011-10-14 Thread 0v3rr!d3
You can just execute any bash command by including command within `` in your controller. For example in your case 'wget --user=test --password=test https://demo.service-now.com/incident_list.do\?CSV' Regards; Kshitiz On Oct 13, 2:14 pm, merbivore eshward...@gmail.com wrote: Hi,    I have a

[Rails] Re: ruby/rails training

2011-10-13 Thread 0v3rr!d3
I would recommend you to watch the railscasts.com video. They are very useful and understandable. Regards; kshitiz http://blog.kshitizgurung.info On Oct 13, 4:10 am, Max aa...@xmission.com wrote: HI all, I was wondering if any of you can recommend some ruby/rails training? I am currently

[Rails] Re: ROR setup on ubuntu machine

2011-10-12 Thread 0v3rr!d3
Hi, You can find tons of tutorial for starting rails. I guess you can find following blog post helpful for setting up rails. http://goo.gl/fhgqV Feel free to comment if any problem arise. Regards; Kshitiz On Oct 12, 9:46 am, amvis vgrkrish...@gmail.com wrote: I am new to ROR, i need to setup

[Rails] Re: Resource deletion fails in rails 3 without javascript turned on

2011-10-01 Thread 0v3rr!d3
Thats the way it is. Javascript should be turned on for delete to work. Regards; 0v3rr!d3 -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from

[Rails] Converting media to m4v format using ffmpeg

2011-09-12 Thread 0v3rr!d3
Can anyone help me convert media to m4v format. I guess ffmpeg would be a nice choice coz I have a rails application where I need to do the conversion. I google, but could not find the solution. BTW I am using jplayer for playing video which only takes m4v video file and thats the reason I need