[Rails] Re: Getting "Could not find gem 'rack (~> 2.x) ruby'" error while running bundle for Rails 5 app

2015-08-21 Thread Al Snow
" ran cleanly. Therefore all 3 repos that I had problems with today and now fixed. (Question Closed) On Friday, August 21, 2015 at 12:09:38 PM UTC-4, Al Snow wrote: > > I have 5 Rails 5 "canery apps' that in the past run bundle cleanly, but > yesterday things ch

[Rails] Re: Getting "Could not find gem 'rack (~> 2.x) ruby'" error while running bundle for Rails 5 app

2015-08-21 Thread Al Snow
roduction.Add `Rails.application.config.assets.precompile += %w( application.js )` to`config/initializers/assets.rb` and restart your server"* On Friday, August 21, 2015 at 12:09:38 PM UTC-4, Al Snow wrote: > > I have 5 Rails 5 "canery apps' that in the past run bundle cleanly

[Rails] Re: Getting "Could not find gem 'rack (~> 2.x) ruby'" error while running bundle for Rails 5 app

2015-08-21 Thread Al Snow
(= 5.0.0.alpha) ruby depends on rack (~> 1.6) ruby rack (>= 0) ruby It appears that we need both rack (2.x) and rack (1.6). FYI, Al On Friday, August 21, 2015 at 12:09:38 PM UTC-4, Al Snow wrote: > > I have 5 Rails 5 "canery apps' that in the past run bundl

[Rails] Getting "Could not find gem 'rack (~> 2.x) ruby'" error while running bundle for Rails 5 app

2015-08-21 Thread Al Snow
t;https://bitbucket.org/jasnow/sample_app_5_0_rt> I checked rubygems.org and latest rack is at 1.6.4 so unclear how to get 2.x. *So how do I change my Gemfile to find "rack 2.x"?* Thanks, Al -- You received this message because you are subscribed to the Google Groups &quo

[Rails] Re: Scaffolding for pre-existing database table in 2.0.1

2014-08-29 Thread Al Rushing
Just another quick solution. You can generate the Ruby scaffolding commands using SQL out of the database. Just access sys.columns or whatever your particular database provides (INFORMATION_SCHEMA or something). For each column, generate that line that Ruby wants for a column / table entry.

[Rails] Re: Scaffolding for pre-existing database table in 2.0.1

2014-08-29 Thread Al Rushing
Sebastian wrote in post #599469: > Hi, > > first of all I will apologize in advance for my presumably noobish > question, but I'm only starting to learn Rails and am a little > confused with all the changes in 2.0.1. There are as good as no > tutorials out yet and the 2 or 3 screencasts I've seen d

[Rails] Using scaffolding with Ruby 4.1.0 on existing Db

2014-08-20 Thread Al Rushing
anges since Ruby 2.0 previously discussed on this forum. Yes? RoR is the best thing since sliced bread! Al. -- 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

[Rails] Re: JMeter Load testing

2013-01-26 Thread Al Fenkner
You need to extract the authenticity_token from the page each time it loads and add it to your form post. How to instructions are provided here: http://ertw.com/blog/2010/06/29/load-testing-a-rails-app-and-the-authenticity_token/ On Thursday, February 25, 2010 9:30:30 AM UTC-8, Ruby-Forum.co

[Rails] function wrappers // code design

2012-04-26 Thread Al F.
Hello, I've been wondering how to improve this part of code in terms of code design: (I'm especially interested in calling the same function with different default attributes - a lot of code duplication) def follow_pages(number_of_pages = 5, sleep_interval = 5) process_pages true, number_of_pa

[Rails] Re: Rails and PHP scripts

2011-04-28 Thread AL
ser, did I understand the point correctly? BR, AL On Apr 27, 9:12 pm, Kendall Gifford wrote: > On Wednesday, April 27, 2011 10:18:03 AM UTC-6, AL wrote: > > > Hi, > > > I'm quite new with Ruby On Rails. I have working Rails 3 environment with > > Apache / Passenger an

[Rails] Rails and PHP scripts

2011-04-27 Thread AL
s. Thanks in advance AL -- 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+unsubscr...@google

[Rails] Stack level too deep problem

2011-03-10 Thread Mo Al
Hi I am getting a Stack level too deep error when i try creating a new critical process object: here is the code: class Role < ActiveRecord::Base has_many :authorizations has_many :critical_processes, :through => :authorizations has_many :assignments has_many :users, :through => :assignm

[Rails] Re: No render in Beginning Rails 3

2010-12-17 Thread Rida Al Barazi
Hi Amador, The jquery-1.4.4.min.js file you have is broken. Try this one instead: http://code.jquery.com/jquery-1.4.4.min.js Cheers, -- Rida Al Barazi Twitter: @rida Blog:http://rida.me Book: http://beginningrails.com On Dec 16, 5:02 pm, Amador Antonio Cuenca wrote: > Hi all again, &g

[Rails] Re: Problem with relations

2010-12-14 Thread Rida Al Barazi
fix this is to rollback your database using: 'rake db:rollback', until you're back before this particular migration. Update the file, and then run 'rake db:migrate' and you should be good to go. I hope this fixes your problem. Cheers, -- Rida Al Barazi Twitter: @rida Blo

[Rails] Multiple relationships between models

2010-11-09 Thread Al Rowan
Hi, I'm fairly new to RoR and I'm trying to figure out the best way to deal with Users in my application. I've got (for the purpose of this thread) 3 models, User, Subject, and SubjectUserAssignment. The user model is joined to the Subject model with the following, creating a many to many relation

[Rails] Re: Nooby Stuck - "has_and_belongs_to_many" relationship

2010-10-12 Thread Al Rowan
through some strange coincidence, my mac crashed. after a reboot it now all works. sorry for wasting your marnen and thanks very much for your assistance. I'm quite stumped as to what actually triggered the fix, I haven't done anything really. I am using Aptana Studio 3...(still in beta) perhap

[Rails] Re: Nooby Stuck - "has_and_belongs_to_many" relationship

2010-10-12 Thread Al Rowan
solved that last error by changing it back from the extra "_id" -- 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-t...@googlegroups.com. To unsubsc

[Rails] Re: Nooby Stuck - "has_and_belongs_to_many" relationship

2010-10-12 Thread Al Rowan
dont know if this helps at all.. ?> scheme.works.empty? ActiveRecord::StatementInvalid: SQLite3::SQLException: no such column: schemes_works.scheme_id: SELECT * FROM "works" INNER JOIN "schemes_works" ON "works".id = "schemes_works".work_id WHERE ("schemes_works".scheme_id = 21 )

[Rails] Re: Nooby Stuck - "has_and_belongs_to_many" relationship

2010-10-12 Thread Al Rowan
ok so, i added the "_id" to both..same error. i also changed it from refrences to integer and it gave me 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 post to this group, s

[Rails] Re: Nooby Stuck - "has_and_belongs_to_many" relationship

2010-10-12 Thread Al Rowan
could it be because i've used "t.refrences" and not "t.integer" I only say this because, I tried to rename the columns and it threw up the error "Missing column schemes_works.scheme" using def self.up rename_column :schemes_works, :scheme, :scheme_id rename_column :schemes_works, :work, :work_

[Rails] Re: Nooby Stuck - "has_and_belongs_to_many" relationship

2010-10-12 Thread Al Rowan
I had done a "reload!" before doing those console commands, i even rebooted! lol my schemes_work table contains a scheme and work field only. not scheme_id nor work_id should i change them? i was following the configuration from a tutorial where they did the same. so i just assumed that was ri

[Rails] Nooby Stuck - "has_and_belongs_to_many" relationship

2010-10-11 Thread Al Rowan
trying to set up a "has_and_belongs_to_many" relationship would very much appreciate the help, not sure what im doing wrong at all. Scheme.rb class Scheme < ActiveRecord::Base validates :schemename, :presence => true belongs_to :user has_many :levels, :dependent => :destroy has_

[Rails] Re: has_many - undefined method!

2010-09-22 Thread Al Rowan
activesupport (3.0.0) lib/active_support/whiny_nil.rb:48:in `method_missing' app/controllers/groups_controller.rb:8:in `create' actionpack (3.0.0) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (3.0.0) lib/action_controller/metal/implicit_render.rb:4:in `send_action

[Rails] Re: has_many - undefined method!

2010-09-22 Thread Al Rowan
class User < ActiveRecord::Base attr_accessor :password validates :email, :uniqueness => true, :length => { :within => 5..50 }, :format => { :with => /^...@][\w.-]+@[\w.-]+[.][a-z]{2,4}$/i } validates :password, :confirmation => true,

[Rails] has_many - undefined method!

2010-09-22 Thread Al Rowan
Hi all, still new at this lol, trying to create a one to many relationship i have: group.rb [ belongs_to :user ] user.rb [ has_many :groups ] but if i do "user.groups" it just throws up: "NoMethodError: undefined method 'groups'.." again thanks for an

[Rails] Re: undifined method! driving me insane!

2010-09-22 Thread Al Rowan
radhames brito wrote: > next time type rake routes and look at the names of the helpers there > you > will see the helper for the show action is > > profile_path no show_profile_path, the output of rake route does not add > the > path ad the end because it could be something else > > like url,

[Rails] undifined method! driving me insane!

2010-09-22 Thread Al Rowan
sence to me as ive got another link to new_profile_path that works?! please help, much thanks Al -- 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 ruby

[Rails] script/generate forum

2010-01-29 Thread Al Eph
Hi, we can generate Model, Controller, Mailers... does anyone know of a generator for a forum? if anyone wants to develop one please get in touch, a...@live.it -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:

[Rails] Re: select form tag (selected option)

2009-11-13 Thread Al F.
This wont work either: <%= f.select :customer_service_rating, options_for_select(1..5), { :selected => 2 } %> -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on

[Rails] select form tag (selected option)

2009-11-13 Thread Al F.
Hello, I'm having problems with form select tag (it wont select the expected value on edit action): <% form_for @review do |f| %> <%= f.label :customer_service_rating %> <%= f.select :customer_service_rating, options_for_select(1..5), { :include_blank => true } %> <% end %> r

[Rails] Re: nokogiri: parsing tags

2009-11-12 Thread Al F.
G_ F_ wrote: > Use Nokogiri::HTML.fragment(str). If I use this it wont parse the image tags. Any idea? -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"

[Rails] nokogiri: parsing tags

2009-11-11 Thread Al F.
Hello, I'm trying to use nokogiri gem to parse individual xhtml tags (not the whole html document) and preform some processing on them. Heres an example of a string that I want to process: str = 'http://www.canadascapital.gc.ca/data/2/rec_imgs/5005_Pepsi_H1NB.gif"/> some texttest ' The fol

[Rails] Re: comparing data

2009-11-08 Thread Al F.
What would be the best way to build the GET request url with the specified plan ids (for instance with form where you can use checkboxes to set the desired plans)? Would you do it with JS? -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You recei

[Rails] College Summer Classes in Ruby-on-Rails

2009-04-16 Thread Al Snow
Looking for local tech college classes, hopefully starting in May or June 2009, in Ruby-on-Rails in metro-Atlanta, GA area. Please respond to jasnow1 (at) gmail (dot) com Thanks, Al --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Rails] Re: Saas design considerations

2008-09-28 Thread Victor Al
I'm sorry if I misunderstood the purpose of your plugins then. I've come across your site several times before through Google searches (on RoR and SaaS) and from the descriptions, the focus seemed really on the billing aspect. That being said, I don't buy the "common sense" argument when desi

[Rails] Re: Saas design considerations

2008-09-26 Thread Victor Al
Benjamin, Not only do I think that what you are doing is indeed "shameless self promotion", but I think that you are seriously misunderstanding the concept of SaaS and promoting bad information about RoR and SaaS on the web. Did you read through the points John asked about above? He is askin

[Rails] Re: GRANT: help me!

2008-09-25 Thread Al Shox
> You might want to try Dr. Nic's Magic Multi-Connections to make the > job easier. Nice name anyway ;) > http://magicmodels.rubyforge.org/magic_multi_connections/ I'll going to see.. Thanks! -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You

[Rails] Re: GRANT: help me!

2008-09-25 Thread Al Shox
Erol Fornoles wrote: > On Sep 25, 8:03�am, Al Shox <[EMAIL PROTECTED]> wrote: >> > � :username => "admin", >> solutions.. and I really don't want!! >> -- >> Posted viahttp://www.ruby-forum.com/. > > Not necessarily. How many kinds of db

[Rails] Re: GRANT: help me!

2008-09-24 Thread Al Shox
Erol Fornoles wrote: > On Sep 25, 4:27�am, Al Shox <[EMAIL PROTECTED]> wrote: >> > database? >> I've grant commands setted into database (with GRANT SELECT...), 3 >> Posted viahttp://www.ruby-forum.com/. > Something like this? > > ActiveRec

[Rails] Re: GRANT: help me!

2008-09-24 Thread Al Shox
> Are you talking about authenticating a users connection to the > database inside your application? > > If so that has nothing todo with the rails database connection. You > need to lookinto a plugin that will do authentication and > authorization on the rails application side... > > OR > > Y

[Rails] GRANT: help me!

2008-09-24 Thread Al Shox
I have a database with grants commands setted (for admin, user, ..). How can I connect each users with database (according with db rules) in rails? When rails application start it is connected according database.yml.. but I need a right connection based on user type! Thanks!! -- Posted via http: