Re: [Rails] Re: Nested form and a link to add fields question?

2012-08-19 Thread Colin Law
On 19 August 2012 22:11, fuzzy wrote: > Thanks Bertly ... that is funny ... but even coders must have > explanations somewhere in there vocabulary ... even before you begin > to code. > > My apologies for not being clearer on this issue ... there is no > error ... the links do not show up on my pa

[Rails] Re: Nested form and a link to add fields question?

2012-08-19 Thread fuzzy
Thanks Bertly ... that is funny ... but even coders must have explanations somewhere in there vocabulary ... even before you begin to code. My apologies for not being clearer on this issue ... there is no error ... the links do not show up on my page or if they do, I have been experimenting a lot,

[Rails] Friendship create action

2012-08-19 Thread Jean-Sébastien D.
I am trying to create a friendship system. There is a post at http://stackoverflow.com/questions/5612736/how-to-implement-a-friendship-model-in-rails-3-for-a-social-networking-applicati Which seem great but the create action doesn't work. How can it work here what I have Controller #Send a frien

[Rails] Re: Paperclip images are not stored in my directory

2012-08-19 Thread Matt Jones
On Saturday, 18 August 2012 01:17:51 UTC-4, Maddy wrote: > > It is my User.rb model, > My images are not stored in my assets directory.. > > has_attached_file :photo, :styles => { :small => "100x100#", :large => > "500x500>", :thumb => "60x60>" }, >:url => > "/assets/users/

Re: [Rails] Why this scaffold command not working?

2012-08-19 Thread Scott Eisenberg
By my tests with the URL in the error and a browser you can download the gem with http but you get a warning message for https. See if you can find a setting to not use ssl to download with your ruby. Must be some sources file somewhere. I use a Mac. Not near my testing environment now though

Re: [Rails] How to enable activerecord whitelist_attributes in non-Rails environment?

2012-08-19 Thread femto Zheng
Hello, thanks very much. On Wed, Aug 15, 2012 at 10:49 PM, Jordon Bedwell wrote: > On Wednesday, 15 August 2012 05:04:44 UTC-5, femto wrote: >> >> Hello all, I'm developing a sinatra application and loads ActiveRecord >> in, >> sometimes it will just report warning for mass for attributes, >> how

Re: [Rails] Why this scaffold command not working?

2012-08-19 Thread saikiran mothe
use this * rails generate scaffold demo name:string seat_seq:string address:text * Cheers, Sai On Sun, Aug 19, 2012 at 1:59 PM, Rubyist Rohit wrote: > I am trying to generate scaffold as below: > > > rails generate scaffold name:string seat_seq:string address:text > > But it is not working an

[Rails] Re: Not able to successfully create new Rails application.

2012-08-19 Thread Rubyist Rohit
@Colin: Thanks for the same. -- 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 post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email t

Re: [Rails] Re: What is the alternative of "ruby script/server" in Rails 3.2.8?

2012-08-19 Thread Colin Law
On 19 August 2012 09:49, Rubyist Rohit wrote: > I am also referring railstutorial.org but it is quite boring when > compared to Head First Rails. It will work however, which is a big advantage. Also you will learn how to use Rails 3 rather than how to use an obsolete version, which is not much u

Re: [Rails] Re: Not able to successfully create new Rails application.

2012-08-19 Thread Colin Law
On 19 August 2012 09:43, Rubyist Rohit wrote: > Ok. I have a Fedora 16 CD. Will install it. I think it doesn't make much > difference between Ruby in Fedora 16 and Ruby in Fedora 17? Sorry, can't comment on Fedora. I'm a Ubuntu man myself. Make sure you use rvm to manage ruby and gems. This lo

[Rails] Re: What is the alternative of "ruby script/server" in Rails 3.2.8?

2012-08-19 Thread Rubyist Rohit
I am also referring railstutorial.org but it is quite boring when compared to Head First Rails. -- 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 post to this group, send email to rubyonrails-

Re: [Rails] Why this scaffold command not working?

2012-08-19 Thread Colin Law
On 19 August 2012 09:29, Rubyist Rohit wrote: > I am trying to generate scaffold as below: > >> rails generate scaffold name:string seat_seq:string address:text > > But it is not working and giving errors. See attached image. > > Attachments: > http://www.ruby-forum.com/attachment/7690/scaffold_er

[Rails] Re: Not able to successfully create new Rails application.

2012-08-19 Thread Rubyist Rohit
Ok. I have a Fedora 16 CD. Will install it. I think it doesn't make much difference between Ruby in Fedora 16 and Ruby in Fedora 17? BTW, RailsInstaller worked. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rai

Re: [Rails] What is the alternative of "ruby script/server" in Rails 3.2.8?

2012-08-19 Thread Colin Law
On 19 August 2012 08:58, Rubyist Rohit wrote: > I created new application skeleton using: > > rails new DemoApp. > > Now my books says to run command: > > ruby script/server > > The book was written with a previous obsolete version in mind. What > command should I run when using Rails 3.2.8 with R

Re: [Rails] Re: Not able to successfully create new Rails application.

2012-08-19 Thread Colin Law
On 19 August 2012 08:31, Rubyist Rohit wrote: > At present this is not possible. Suggest ways to make it work on Windows > 7. Some have had success with rails on windows using http://railsinstaller.org/ but I believe it will never be as comfortable an experience as using linux. I would advise ag

[Rails] Why this scaffold command not working?

2012-08-19 Thread Rubyist Rohit
I am trying to generate scaffold as below: > rails generate scaffold name:string seat_seq:string address:text But it is not working and giving errors. See attached image. Attachments: http://www.ruby-forum.com/attachment/7690/scaffold_error.png -- Posted via http://www.ruby-forum.com/. -- Y

Re: [Rails] What is the alternative of "ruby script/server" in Rails 3.2.8?

2012-08-19 Thread saikiran mothe
*rails s -- to start server * ruby script/server --- for 2.3.8 On Sun, Aug 19, 2012 at 1:28 PM, Rubyist Rohit wrote: > I created new application skeleton using: > > rails new DemoApp. > > Now my books says to run command: > > ruby script/server > > The book was written with a previous obsolete

[Rails] What is the alternative of "ruby script/server" in Rails 3.2.8?

2012-08-19 Thread Rubyist Rohit
I created new application skeleton using: rails new DemoApp. Now my books says to run command: ruby script/server The book was written with a previous obsolete version in mind. What command should I run when using Rails 3.2.8 with Ruby 1.9.3? -- Posted via http://www.ruby-forum.com/. -- You

[Rails] Re: Not able to successfully create new Rails application.

2012-08-19 Thread Rubyist Rohit
I even tried: rails new demo but it crashes somewhere or the other in run bundle install -- 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 post to this group, send email to rubyonrails-talk@

Re: [Rails] Re: Not able to successfully create new Rails application.

2012-08-19 Thread saikiran mothe
Hi Rohit, *rails new demo* *(It will create a new demo application) rails new demo -d=mysql (create a rails new application with default mysql database) Cheers, Sai On Sun, Aug 19, 2012 at 1:08 PM, Rubyist Rohit wrote: > 3.2.8 > > -- > Posted via http://www.ruby-forum.com/. > > -- > You rece

[Rails] Re: Not able to successfully create new Rails application.

2012-08-19 Thread Rubyist Rohit
3.2.8 -- 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 post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsu

Re: [Rails] Re: Not able to successfully create new Rails application.

2012-08-19 Thread ANIKET KADAM
which version of rails are you using? On Sun, Aug 19, 2012 at 1:05 PM, Rubyist Rohit wrote: > Head First Rails > > -- > 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 post to this group

[Rails] Re: Not able to successfully create new Rails application.

2012-08-19 Thread Rubyist Rohit
Head First Rails -- 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 post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrail

Re: [Rails] Re: Not able to successfully create new Rails application.

2012-08-19 Thread ANIKET KADAM
which tutorial are you using or book? On Sun, Aug 19, 2012 at 1:01 PM, Rubyist Rohit wrote: > At present this is not possible. Suggest ways to make it work on Windows > 7. > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google

[Rails] Re: Not able to successfully create new Rails application.

2012-08-19 Thread Rubyist Rohit
At present this is not possible. Suggest ways to make it work on Windows 7. -- 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 post to this group, send email to rubyonrails-talk@googlegroups.co

Re: [Rails] Re: Not able to successfully create new Rails application.

2012-08-19 Thread ANIKET KADAM
i will advice you to use Ubuntu with wubi installer because rails did not provide that support in windows which it provide in Mac or Linux ( Linux based Ubuntu 12.04 ) On Sun, Aug 19, 2012 at 12:56 PM, Rubyist Rohit wrote: > Yes I am using Windows 7. > > -- > Posted via http://www.ruby-forum.com/

[Rails] Re: Not able to successfully create new Rails application.

2012-08-19 Thread Rubyist Rohit
Yes I am using Windows 7. -- 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 post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to r

Re: [Rails] Not able to successfully create new Rails application.

2012-08-19 Thread ANIKET KADAM
to create new app in rails command is => rails new YOUR_APP are you using windows 7? On Sun, Aug 19, 2012 at 12:45 PM, Rubyist Rohit wrote: > When I try to create basic skeleton of Rails application using: > > > rails MyApp > > is generating lot of errors as soon as it starts: > > run bundle ins

[Rails] Not able to successfully create new Rails application.

2012-08-19 Thread Rubyist Rohit
When I try to create basic skeleton of Rails application using: > rails MyApp is generating lot of errors as soon as it starts: run bundle install. It installs few things here but displaying errors even when Internet Connection is ON. Sometimes the errors are of SSL and sometime of Coffee Scrip