[Rails] How to use Json

2013-04-21 Thread lekha p.
Please Help, Hi can anybody show me some simple code which shows how using json in Rails application. Thanks, Lekha -- 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 g

Re: [Rails] Re: Forcing browser redirects on a Ruby on Rails application

2013-04-21 Thread karan verma
Thanks Martin and Colin. With your help and reading some stack overflow posts i've arrived at a solution that meets my need best. I'm posting it here so that it might be useful for other users. Since I wanted the users to be redirected in real time to a URL chosen by the admin or an algorithm in

Re: [Rails] Learning ROR testing

2013-04-21 Thread tamouse mailing lists
On Apr 21, 2013 10:53 AM, "ROR User" wrote: > > Can anyone suggest an advanced resource for learning proper ROR testing? I've been writing web apps with ROR for nearly a year now but have been neglecting to write the proper test suites as I'm not sure exactly what requires a test and what doesn't

Re: [Rails] Re: Where to find info about seed.rb, db:seed functionality?

2013-04-21 Thread tamouse mailing lists
On Apr 21, 2013 11:24 AM, "Frederick Cheung" wrote: > > On Sunday, April 21, 2013 3:15:37 PM UTC+1, tamouse wrote: > > On Sun, Apr 21, 2013 at 6:39 AM, Wins Lin wrote: > > > > > Dheeraj Kumar wrote in post #1106428: > > > > > > Seeds have been in Rails for quite some time; how does information >

[Rails] Re: forgery protection for multiple browser tabs

2013-04-21 Thread Martin Luy
You're right, sorry.. Am Freitag, 19. April 2013 09:25:39 UTC+2 schrieb Frederick Cheung: > > On Thursday, April 18, 2013 10:42:07 PM UTC+1, Martin Luy wrote: > > any comments? > > Why would opening a new tab get you a different csrf token? > > Fred > > -- You received this message because you a

Re: [Rails] Re: Where to find info about seed.rb, db:seed functionality?

2013-04-21 Thread Frederick Cheung
On Sunday, April 21, 2013 3:15:37 PM UTC+1, tamouse wrote: > On Sun, Apr 21, 2013 at 6:39 AM, Wins Lin wrote: > > > Dheeraj Kumar wrote in post #1106428: > > > Seeds have been in Rails for quite some time; how does information > > migrate from Edge Guides to mainstream Guides? The guides are

[Rails] Learning ROR testing

2013-04-21 Thread ROR User
Can anyone suggest an advanced resource for learning proper ROR testing? I've been writing web apps with ROR for nearly a year now but have been neglecting to write the proper test suites as I'm not sure exactly what requires a test and what doesn't, which leaves me fearing I'll spend twice as

Re: [Rails] Photo album using RoR

2013-04-21 Thread Fan Lee
Hi,I'm a starter of RoR, and I'm trying to make a photo album.Google lead me to this topic,could u please send me the code "strategy" as well? Thank you very much! and another question, I use Devise to build up user system.and in the routes file , I use resources :user do 在 2011年8月9日星期二UTC+8上午

[Rails] Re: Forcing browser redirects on a Ruby on Rails application

2013-04-21 Thread Martin Gogov
The table approach would still work: a subtask you need to solve is how to allocate a unique URL to a bunch of user ids and then redirect them to the new URL when the timeout expires. I second Colin's suggestion to use Javascript polling and the setTimeout function, if it's not critical for the

Re: [Rails] Re: Where to find info about seed.rb, db:seed functionality?

2013-04-21 Thread tamouse mailing lists
On Sun, Apr 21, 2013 at 6:39 AM, Wins Lin wrote: > Dheeraj Kumar wrote in post #1106428: >> You could refer the edge guides: >> http://edgeguides.rubyonrails.org/migrations.html#migrations-and-seed-data > > Thank you. Didn't know about this resource. Seeds have been in Rails for quite some time;

[Rails] Нужен ли такой гем?

2013-04-21 Thread Barry
Который откладывает сохранение юзера до подтверждения по специальной ссылке, высланной на указанное мыло? Ничего похоже не нашел. Думаю, сделать сразу в виде гема. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this

[Rails] Re: Where to find info about seed.rb, db:seed functionality?

2013-04-21 Thread Wins Lin
Dheeraj Kumar wrote in post #1106428: > You could refer the edge guides: > http://edgeguides.rubyonrails.org/migrations.html#migrations-and-seed-data Thank you. Didn't know about this resource. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to

Re: [Rails] Where to find info about seed.rb, db:seed functionality?

2013-04-21 Thread Dheeraj Kumar
You could refer the edge guides: http://edgeguides.rubyonrails.org/migrations.html#migrations-and-seed-data On Sun, Apr 21, 2013 at 4:56 PM, Wins Lin wrote: > There is no any mention about it neither in API nor in Guide. How to use > these features? The only gist with two sentences is in db/see

[Rails] Where to find info about seed.rb, db:seed functionality?

2013-04-21 Thread Wins Lin
There is no any mention about it neither in API nor in Guide. How to use these features? The only gist with two sentences is in db/seed.rb file. That's really not enough. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby