Re: [Rails] Re: What exactly is rake

2013-09-05 Thread Emil S
That's good. Now you have a chance to learn what "make" is. I'm sure it would come in handy . On 6 September 2013 12:09, Vijay Bhargav wrote: > Hi Dheeraj, > > I tried. at most of the places it said its like make. but i am not aware > of what is make. more over most of google pages gave me how

[Rails] Re: What exactly is rake

2013-09-05 Thread Vijay Bhargav
Hi Dheeraj, I tried. at most of the places it said its like make. but i am not aware of what is make. more over most of google pages gave me how to install the rake. can you pls help me in understanding Thanks Vijay -- Posted via http://www.ruby-forum.com/. -- You received this message becau

[Rails] paperclip

2013-09-05 Thread Avi
Hello, how to save paperclip image to s3 without any model? Is it possible? I need to save image to s3 directly inside a method without saving it in database. How can I do that? Thanks in advance, Avinash -- You received this message because you are subscribed to the Google Groups "Ruby on

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/. >

[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 rece

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 line

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 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 new record to A > @ta

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] 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 : http://

[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 interpre

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 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 w

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 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 > is not that good ap

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 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 B > Table A > id n

[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 good

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: <%= form_for @knight do |f| %> <%= f.label :favorite_color, 'What\'s your favorite color?' %> <%= f.collection_select :favorite_color, %w(red green blue ah), :to_s, :titleize

[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

[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 receivi

[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 http://www.ruby

[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