[Rails] Re: Ruby QR code decoder?

2013-09-05 Thread remedy fetterman
Hi, friends. I happen to come to this thread. I am an barcode expert. I know good barcode site(http://www.onbarcode.com/) where you can find various qr code decoders. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on

[Rails] Requesting information from user

2013-09-05 Thread Jorge C.
Hi, I need to popup a message to the user in order he can choose an option. It is not a YES-NO option but almost the same (has has to choose among two options). It has to be a message with a question and two buttons. Is that possible on Rails? Thanks! Jorge -- Posted via

[Rails] Re: Requesting information from user

2013-09-05 Thread Joel Pearson
I believe the standard way to do this would be to show a previously hidden div containing a form. -- 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

[Rails] Re: Requesting information from user

2013-09-05 Thread Jorge C.
Joel Pearson wrote in post #1120757: I believe the standard way to do this would be to show a previously hidden div containing a form. And that is possible using Rails or is it Javascript? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to

Re: [Rails] Requesting information from user

2013-09-05 Thread Walter Lee Davis
You would show and hide the element with JavaScript, but create it in Rails. Simple example: div id=favorite-color style=display:none %= form_for @knight do |f| % %= f.label :favorite_color, 'What\'s your favorite color?' % %= f.collection_select :favorite_color, %w(red

[Rails] After I save a record in table A I want to save the id of that record in table B Immediatly

2013-09-05 Thread honey ruby
Hi all I have two tables A and B I have saved a record in table A and I want to save the id of that record in table B. How Can I do that. Well I can do by search of same params which I save in Table A but I feel it is not that good approach. If the app is has multiple users than that is not

Re: [Rails] After I save a record in table A I want to save the id of that record in table B Immediatly

2013-09-05 Thread Colin Law
On 5 September 2013 17:12, honey ruby emailtohoneyr...@gmail.com wrote: Thanks for your quick responses. Does I get the same id if I use @whatever.reload. if that model is accessed often and there are multiple users working on same model and I want table A id to be saved as new record in table

Re: [Rails] After I save a record in table A I want to save the id of that record in table B Immediatly

2013-09-05 Thread Scott Ribe
On Sep 5, 2013, at 9:47 AM, honey ruby emailtohoneyr...@gmail.com wrote: Hi all I have two tables A and B I have saved a record in table A and I want to save the id of that record in table B. How Can I do that. Well I can do by search of same params which I save in Table A but I feel it

Re: [Rails] After I save a record in table A I want to save the id of that record in table B Immediatly

2013-09-05 Thread Walter Lee Davis
On Sep 5, 2013, at 11:50 AM, Scott Ribe wrote: On Sep 5, 2013, at 9:47 AM, honey ruby emailtohoneyr...@gmail.com wrote: Hi all I have two tables A and B I have saved a record in table A and I want to save the id of that record in table B. How Can I do that. Well I can do by search of

[Rails] testing a REST API that receives params in json and returns data in json

2013-09-05 Thread andreo
Hey everyone, This is a problem that has been bothering me for some time. I am building an API function that should receive data in json and response in json. My controller tests run fine(Since I abstract that the data gets there already decode from JSON and only the answer needs to be

Re: [Rails] testing a REST API that receives params in json and returns data in json

2013-09-05 Thread Emil S
What you are asking for is a way to test your API from the perspective of a client ( like curl ) . I wanted to do the same thing in a project I worked on, and I used Cucumber + Rack::Test + some JSON helper methods and I am really happy with how it worked out. I've blogged about this here :

Re: [Rails] After I save a record in table A I want to save the id of that record in table B Immediatly

2013-09-05 Thread honey ruby
Thanks for your quick responses. Does I get the same id if I use @whatever.reload. if that model is accessed often and there are multiple users working on same model and I want table A id to be saved as new record in table B Table A id name email 878 Sam s...@mail.in.com as I

Re: [Rails] After I save a record in table A I want to save the id of that record in table B Immediatly

2013-09-05 Thread Colin Law
On 5 September 2013 18:56, honey ruby emailtohoneyr...@gmail.com wrote: Thanks for the response Colin my last mail was deleted some how anyway thanks for your reply. So If I use association between the tables Table ATable B has_many B and belongs_to A now I save a

Re: [Rails] After I save a record in table A I want to save the id of that record in table B Immediatly

2013-09-05 Thread honey ruby
Thanks for the response Colin my last mail was deleted some how anyway thanks for your reply. So If I use association between the tables Table ATable B has_many B and belongs_to A now I save a new record to A @table_a = TableA.save @table_b = ? what should be my next

[Rails] What exactly is rake

2013-09-05 Thread Vijay Bhargav
Hi Friends, I am a newbie to Ruby on rails. i would like to know what exactly is Rake. Thanks Vijay -- 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

Re: [Rails] What exactly is rake

2013-09-05 Thread Dheeraj Kumar
Did you try googling? http://rake.rubyforge.org/ -- Dheeraj Kumar On Friday 6 September 2013 at 11:26 AM, Vijay Bhargav wrote: Hi Friends, I am a newbie to Ruby on rails. i would like to know what exactly is Rake. Thanks Vijay -- Posted via http://www.ruby-forum.com/. --