" 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
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
(= 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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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 )
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
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_
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
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_
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
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,
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
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,
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
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:
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
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
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"
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
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
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
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
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
> 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
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
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
> 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
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:
41 matches
Mail list logo