Re: [Rails] Removing session element

2013-03-25 Thread tamouse mailing lists
On Mon, Mar 25, 2013 at 11:59 PM, Avi wrote: > I have an array:- > > session[:new] = Array.new > session[:new] = [1, 2, 3, 4] - I am keeping these object ids in session. > > I want to delete one id from the session - as session[:new] = [1, 2, 3] > How to delete one of the ids ? Off the top of m

Re: [Rails] Please help: quotes in views

2013-03-25 Thread tamouse mailing lists
On Mon, Mar 25, 2013 at 2:58 PM, Y S wrote: > How should we approach the problem is the tab character is to be included in > the string. For example, > > <% c = '\t' %> > > just shows the tab as a space. The tab char (\t) is not converted by html_escapes() as far as I know; if you want to make i

[Rails] Removing session element

2013-03-25 Thread Avi
Hello All, I have an array:- session[:new] = Array.new session[:new] = [1, 2, 3, 4] - I am keeping these object ids in session. I want to delete one id from the session - as session[:new] = [1, 2, 3] How to delete one of the ids ? Thanks, Avi -- You received this message because you are s

Re: [Rails] Re: Split ActiveRecord::Base model

2013-03-25 Thread tamouse mailing lists
On Mon, Mar 25, 2013 at 2:51 PM, Paulo Ribeiro wrote: > Em segunda-feira, 25 de março de 2013 14h39min09s UTC-3, Matt Jones > escreveu: >> On Sunday, 24 March 2013 12:59:00 UTC-4, Paulo Ribeiro wrote: >>> >>> Thx for your reply. I want to make the models more light. I want to make >>> models what

Re: [Rails] Re: Installation Problem

2013-03-25 Thread tamouse mailing lists
Can you run git remote -v and see what it says? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to

Re: [Rails] validates presence of foreign key fails in nested form

2013-03-25 Thread Serguei Cambour
Found the way to do that by using 'inverse_of' option (see below): On 25 Mar 2013, at 16:03, Javix wrote: > I'm using accepts_nested_attributes as follows: > > class Timesheet < ActiveRecord::Base > attr_accessible :status, :user_id, :start_date, :end_date, > :activities_attributes > has_m

Re: [Rails] Please help: quotes in views

2013-03-25 Thread Y S
Thank you! I just had a couple of questions: How should we approach the problem is the tab character is to be included in the string. For example, <% c = '\t' %> just shows the tab as a space. Also, shouldn't Rails helper tags use single quotes since they work in both cases: <% c1 = "'" %>

[Rails] Re: Split ActiveRecord::Base model

2013-03-25 Thread Paulo Ribeiro
Em segunda-feira, 25 de março de 2013 14h39min09s UTC-3, Matt Jones escreveu: > > > > On Sunday, 24 March 2013 12:59:00 UTC-4, Paulo Ribeiro wrote: >> >> Thx for your reply. I want to make the models more light. I want to make >> models what will only access the database (CRUD), without callbac

[Rails] Re: Installation Problem

2013-03-25 Thread Romeeka Gayhart
This is what I am inputting and not getting a copy with Attachments: http://www.ruby-forum.com/attachment/8260/Capture.JPG -- 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 t

[Rails] Installation Problem

2013-03-25 Thread Romeeka Gayhart
I am trying to get the public key from rails, as the last part of the installation how to in order to paste to Github... but for some reason, it is not actually copying to my clipboard - and the key that I was originally given earlier in the process is not allowing me to connect. I apologize for t

[Rails] Web Search and filter

2013-03-25 Thread McRails
What is the best design way to do this? I'm creating a web form to receive input. The input data will be stored in the database and then a search is done over three web services for some corresponding data. Is it correct to create in one model all the fields from the initial input and the three

[Rails] Re: Problems with bundle install

2013-03-25 Thread Weverton G.
If I run "RAILS_ENV=production bundle install", I get the same error. -- 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 receiving emails from it, send an em

[Rails] Problems with bundle install

2013-03-25 Thread Weverton G.
Hi, When I run "bundle install" on my app, all works fine. Otherwise, if I run "bundle install --gemfile /home/deployer/apps/my_app/shared/cached-copy/app_portal/Gemfile --path /home/deployer/apps/my_app/shared/bundle --deployment --without development test" (command used by Capistrano), I get the

[Rails] Re: Split ActiveRecord::Base model

2013-03-25 Thread Matt Jones
On Sunday, 24 March 2013 12:59:00 UTC-4, Paulo Ribeiro wrote: > > Thx for your reply. I want to make the models more light. I want to make > models what will only access the database (CRUD), without callbacks and the > other stuffs it loads. > > Not to be rude, but this is still "what" you want

[Rails] validates presence of foreign key fails in nested form

2013-03-25 Thread Javix
I'm using accepts_nested_attributes as follows: class Timesheet < ActiveRecord::Base attr_accessible :status, :user_id, :start_date, :end_date, :activities_attributes has_many :activities, dependent: :destroy has_many :time_entries, through: :activities accepts_nested_attributes_for :acti

Re: [Rails] Help me about connect Facebook in Ruby on Rails

2013-03-25 Thread Cassio Soares Cabral
Explain more a bit what you want. If you want to interact with Facebook's API try to use the gem Koala. If you want to show only the users, you should change your index(or any other page) to show all the users by name. On that Railscast only shows the logged in user, so that name(your name) in the