[Rails] Re: Problem serving image assets

2019-03-06 Thread Steve Alex
und would work. You are basically ignoring the asset pipeline Steve On Wednesday, March 6, 2019 at 6:16:28 AM UTC-6, Colin Law wrote: > > I hope someone can help me with an assets problem. I have had to > rebuild a production server and images are no longer getting served. >

Fwd: [Rails] Combination for boolean value array

2019-02-23 Thread Steve Alex
index into were that array is in the whole truth array. Not sure if it has any use, Steve > On Feb 22, 2019, at 3:10 PM, Marco Antonio Almeida <mailto:marcoafi...@gmail.com>> wrote: > > Hi Sapna, > > This is a fun exercise to do and also to do some refactoring after I got to

[Rails] Safari 12.0.1 will break most applications that has a 'Confirm' JS alert

2018-11-30 Thread Steve Alex
I upgraded my MacBookAir to Mojave several weeks ago which includes Safari 12.0.1. I've also had been upgrading several internal rails applications to Rails 5.1.6 and new version of RailsFoundation with xy-grid. I then started having problems with those applications. Mainly a CRUD delete link

[Rails] Re: Cache is running query on view fragment cache hit anyway

2018-09-28 Thread Steve
Yeah, I created a Rails 3 and Rails 4 project. Rails 3 doesn't support #cache_key on collection, and Rails 4 uses each individual element to create a cache key. I set up byebug and traced the #cache view helper. The reason the relation is being loaded is because the helper eventually calls

[Rails] Re: Set custom cache_key of Fragment Caching

2018-09-24 Thread Steve
In Rails 5, you can turn cache versioning on and override #cache_version in your model if you'd like to return a different column. https://github.com/rails/rails/blob/b2eb1d1c55a59fee1e6c4cba7030d8ceb524267c/activerecord/lib/active_record/integration.rb In earlier versions of Rails, you can

[Rails] Cache is running query on view fragment cache hit anyway

2018-09-24 Thread Steve
I've been developing with Rails for a few years now, but one part I haven't used is view fragment caching. I'm using it now, and I'm seeing what I think is undesirable behavior, but I need someone with experience to tell me if it's supposed to be this way. I'm caching a collection, and it runs

[Rails] Re: http requests

2017-06-01 Thread steve enzer
httparty might do the job On Wednesday, May 31, 2017 at 10:27:42 AM UTC-7, Joe Guerra wrote: > > Hmm, which gem would allow you to perform http requests within Rails? I > would like to send a request to the canadapost website and pass it some > parameters and return a shipping total. > > I do

[Rails] IBM MQ Light on Rails

2015-08-14 Thread Steve Head
Recently posted a blog discussing messaging using Ruby on Rails. IBM MQ Light is used as a messaging client connecting to an IBM MQ queue manager running the AMQP listener https://developer.ibm.com/messaging/2015/08/14/mq-light-on-rails/ -- You received this message because you are subscribed

[Rails] Re: Rails 4 nested attributes multiple records insert instead updating

2014-08-22 Thread Steve Robinson
:) Thanks man, On Tuesday, August 19, 2014 4:35:23 PM UTC+5:30, Ruby-Forum.com User wrote: Thanks Steve it's working... i have this hidden fields for adding anothers sublessons and it's seems like it's generating some nasty ids...if i want to create and update same time i have to make another

Re: [Rails] Re: Broken has_many

2014-08-19 Thread Steve Robinson
has a way of doing it properly :) Thanks! Steve -- @stev4nity -- 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

[Rails] Re: Rails 4 nested attributes multiple records insert instead updating

2014-08-19 Thread Steve Robinson
On Tuesday, August 19, 2014 1:03:03 PM UTC+5:30, Marius Turcu wrote: I'm stuck and i don't know why it is not working right. I have a model lesson wich has many sublessons. When i update the lesson rails update properly the lesson attributes but is creating another sublessons records

[Rails] Re: Rails 4 nested attributes multiple records insert instead updating

2014-08-19 Thread Steve Robinson
PM UTC+5:30, Ruby-Forum.com User wrote: Thanks Steve, but now is give me error message...i write :id instead of sublesson_id ...This :id where do he come from from? Thanks! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed

[Rails] Experienced Developer, Avail. half time mpw

2014-07-11 Thread Steve
developer: the last 6 years working mostly with Ruby and Rails, prior to that a Smalltalk developer, earlier on at Apple in the Multimedia Lab. I'd work remotely or be happy to come in if you're local to the SF bay area. Thanks warmly, Steve Enzer -- You received this message because you are subscribed

[Rails] Re: Recommendations for Hosted CI servers supporting RoR with private repos?

2014-05-09 Thread Steve Robinson
Hi You should totally try CircleCI. Its only $19/m and gives you unlimited builds. But basic plan supports no parallel builds though. Has nice support for Continuous Deployment and has loads of Integrations 3. have a look. -- Steve On Thursday, May 8, 2014 6:52:33 PM UTC+5:30, Ganesh

[Rails] Re: Four way JOIN (many-to-many + lookup); preventing duplicates when using scopes

2014-03-12 Thread Steve
Nevermind. I don't know what I was thinking using @request.users directly when I should have been using @request.request_user_roles instead. This works fine: @request.request_user_roles.joins(:request_role_types).merge(RequestRoleType.is_initiator) Then I can get the User and the user's Role

[Rails] Four way JOIN (many-to-many + lookup); preventing duplicates when using scopes

2014-03-11 Thread Steve
I have two top-level entities joined with a third table (many-to-many relationship) which uses yet another table (lookup/reference table) to describe the nature of the relationship of the join. ActiveRecord is adding an unnecessary JOIN which results in duplicate rows being returned. [See

[Rails] Re: Advanced ActiveRecord tutorials

2014-02-25 Thread Steve Robinson
has a pretty extensive coverage of ActiveRecord http://guides.rubyonrails.org/active_record_querying.html If you want to achieve something specific, then you'll find a lot of tutorials for that. And as always you can ask here as well :) Hope this helps. -- Steve Robinson about.me/steverob

[Rails] Problems with ActionMailer

2013-09-26 Thread steve ross
I'm having a tough time tracking down why my mail is not being sent from an app I migrated from 3.0 - 3.1 - 3.2. The relevant code sections are in this SO question. My questions here are: 1) Does something just jump out as wrong in my setup? 2) How would you track this down. All my specs pass

[Rails] [ANN] Rails 3.2.13.rc1 has been released!

2013-02-27 Thread Steve Klabnik
. [Backport #8329] *Elia Schito* * Add i18n scope to `distance_of_time_in_words`. [Backport #7997] *Steve Klabnik* * Fix side effect of `url_for` changing the `:controller` string option. [Backport #6003] Before: controller = '/projects' url_for :controller = controller, :action

[Rails] Get numerous VC Backed Companies Competing For You [JOB] - UK, Paris, Berlin, Europe, NYC, SF

2012-12-28 Thread Steve Cash @AuctionFlair
As a software engineer you surely get numberless emails and pitches every week from uninformed recruiters, headhunters and IT staffing agencies. AuctionFlair helps you change how finding a job works for developers by having the employers come to them rather than the other way around. Get a

[Rails] Working In Iframe for long time - Session timeout problem

2012-10-10 Thread Steve Babs
Hi All, In my project I am using iframe popup box to load url that I need to locate. In that users can navigate all pages with in iframe only. Here User may not reload the parent window. In this case, Session automatically timedout. Please help me to reset session timeout ,even users working

[Rails] Re: Re: Re: Re: Simple (I'm sure) Question about Joins

2012-08-06 Thread Steve Morrissey
Colin Law wrote in post #1071405: On 5 August 2012 22:24, Steve Morrissey li...@ruby-forum.com wrote: %= render @comments % commented %= time_ago_in_words comment.created_at %/span 15 LIMIT 1 CACHE (0.0ms) SELECT users.* FROM users WHERE users.id = 14 LIMIT 1 Rendered

[Rails] Re: Re: Re: Re: Re: Simple (I'm sure) Question about Joins

2012-08-06 Thread Steve Morrissey
Colin Law wrote in post #1071422: On 6 August 2012 14:13, Steve Morrissey li...@ruby-forum.com wrote: Completed 500 Internal Server Error in 21602ms Thanks for the continued replies, Colin. username: uberamd, isadmin: nil, isbanned: nil, created_at: comment.created_at. But alas, I am clearly

[Rails] Re: Re: Re: Re: Re: Re: Simple (I'm sure) Question about Joins

2012-08-06 Thread Steve Morrissey
Colin Law wrote in post #1071427: On 6 August 2012 14:29, Steve Morrissey li...@ruby-forum.com wrote: undefined method `username' for nil:NilClass So I'm basically very confused right now. It looks like comment.user has everything I'd need to do that, yet nothing works. I can't even do

[Rails] Re: Re: Re: Re: Re: Re: Simple (I'm sure) Question about Joins

2012-08-06 Thread Steve Morrissey
Steve Morrissey wrote in post #1071429: Colin Law wrote in post #1071427: On 6 August 2012 14:29, Steve Morrissey li...@ruby-forum.com wrote: undefined method `username' for nil:NilClass So I'm basically very confused right now. It looks like comment.user has everything I'd need to do

[Rails] Re: Re: Simple (I'm sure) Question about Joins

2012-08-05 Thread Steve Morrissey
Colin Law wrote in post #1071341: On 5 August 2012 03:42, Steve Morrissey li...@ruby-forum.com wrote: Since you have not quoted the previous message I have just wasted time looking back through the thread to work out what this is about. Remember this is a mailing list not a forum, though you

[Rails] Re: Re: Re: Simple (I'm sure) Question about Joins

2012-08-05 Thread Steve Morrissey
:in `_app_views_comments__comment_html_erb___715147692_2186695040' app/views/snippets/show.html.erb:24:in `_app_views_snippets_show_html_erb__1112126603_2190824420' Colin Law wrote in post #1071379: On 5 August 2012 21:48, Steve Morrissey li...@ruby-forum.com wrote: communication (which is even harder to grasp while viewing the of this yet

[Rails] Re: Simple (I'm sure) Question about Joins

2012-08-04 Thread Steve Morrissey
Alright so I changed my comment form snippet from: %= form_for(@comment, :html = { :class = joinform }) do |f| % To: %= form_for([@snippet, @snippet.comments.build]) do |f| % Which caused my comment form to finally work successfully, however the following code now fails (this is my comment

[Rails] Simple (I'm sure) Question about Joins

2012-08-03 Thread Steve Morrissey
I'm working on a into rails project in parallel with a book I'm reading. I have 3 models/controllers that I'm trying to get to interact properly: user, article, comment Each article can have many comments, each comment is made by 1 user. Currently I'm able to get the article to show the comment

[Rails] Re: Simple (I'm sure) Question about Joins

2012-08-03 Thread Steve Morrissey
Douglas Lovell wrote in post #1071218: Steve: Assuming your many comments to one user relation is set-up properly, ask for cu = comment.user. Then %= cu.username % will work for you. Doug Douglas Lovell www.wbreeze.com Worked perfectly, thank you! :) -- Posted via http://www.ruby

[Rails] Problem with rails installation, even when running rails -v

2012-07-28 Thread Steve Hayes
/gems/ruby-1.9.3-p194@global/bin:/usr/local/rvm/rubies/ruby-1.9.3-p194/bin:/usr/local/rvm/bin:/home/steve/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/sm/pkg/active/bin:/sm/pkg/active/sbin:/home/steve/.rvm/bin: No such file or directory

[Rails] Relationship issue with activerecord rails

2012-05-29 Thread Steve Knit
I am still learning Rails, I've read some books and did some hands on at codeschool.com and now I'm trying to write my first simple app from scratch. I'm using devise for authentication, but since i still kinda suck at rails, I haven't gotten email confirmation working so currently, for testing

[Rails] Re: Relationship issue with activerecord rails

2012-05-29 Thread Steve Knit
Thanks for pointing me to @pets = admin.pets.all but now I'm getting the error ActiveRecord::StatementInvalid in PetsController#index SQLite3::SQLException: no such column: pets.admin_id: SELECT pets.* FROM pets WHERE (pets.admin_id = 1) Rails.root:

[Rails] Re: Relationship issue with activerecord rails

2012-05-29 Thread Steve Knit
Hello Jeremy, thanks for providing me your experience and quick response! Here is my migration, sorry for being such a newb [loluser@fedora migrate]$ cat 20120527225053_create_pets.rb class CreatePets ActiveRecord::Migration belongs_to :admin def self.up create_table :pets do |t|

[Rails] Very strange problem a lot of ruby process

2012-02-05 Thread Steve
Very strange problem: Ton's of ruby process just running simple command rails --version or rails new test1 . I try to run this simple command rails new test1 -- this suppose to be create a new rails site. rails --version -- even this I got ton's of ruby process -- You received this message

[Rails] Re: Re: Re: Very strange problem: Ton's of ruby process just running simple command rails --version

2012-02-02 Thread Steve Robin
OS install and here is the reference https://gist.github.com/1722825 robinhood:junk89 steve$ cat ~/.railsrc cat: /Users/steve/.railsrc: No such file or directory robinhood:junk89 steve$ rvm current ruby-1.9.3-preview1@new_rails robinhood:junk89 steve$ rvm gemdir /Users

[Rails] Re: Re: Re: Re: Very strange problem: Ton's of ruby process just running simple command rails --ver

2012-02-02 Thread Steve Robin
Hi Peter, You really deserve the MEDAL of HONOR in helping ways to solve these. So far, it still not able to pass that ton's of ruby process problems. https://gist.github.com/1723620 At least now, I know i have old rvm and be able to update it already. Seems like there already several test to

[Rails] Re: Re: Re: Re: Re: Very strange problem: Ton's of ruby process just running simple command rails -

2012-02-02 Thread Steve Robin
Thanks Peter, Since I have machine to experiment with, in the near future, I might reinstall from fresh. In the past, this machine (Mac Book Pro and MacMini), Ruby on Rails with that simple statement work. but somehow, don't know what cause it and when it happen and why it happen, suddenly

[Rails] Very strange problem: Ton's of ruby process just running simple command rails --version or rails

2012-02-01 Thread Steve Robin
Very strange problem: Ton's of ruby process just running simple command rails --version or rails new test1 I have very strange problem. I try to run this simple command rails new test1 -- this suppose to be create a new rails site. rails --version -- even this I got ton's of ruby process

[Rails] Re: Very strange problem: Ton's of ruby process just running simple command rails --version or ra

2012-02-01 Thread Steve Robin
Colin Law wrote in post #1043562: No idea why but in the quest for more information, do you get any errors? Does the command work? Colin The command is not working and no error. Just simple commands below, it just hang there until i pressed control c rails --version rails new test1 I am

[Rails] Re: Re: Very strange problem: Ton's of ruby process just running simple command rails --version or

2012-02-01 Thread Steve Robin
Thanks Peter, for excellent way to troubleshoot it. here is the ouput https://gist.github.com/1721589 in summary below robinhood:~ steve$ cat ~/.railsrc cat: /Users/steve/.railsrc: No such file or directory robinhood:~ steve$ rvm current ruby-1.9.2-p290@rails3 robinhood:~ steve$ rvm gemdir

[Rails] New rails user - Trying to understand why console wont run save command

2011-11-26 Thread Steve Mr.
Hi Everyone, I just found this forum today and I'm having trouble with a rails tutorial I'm working on. On all other rails console commands it runs when I hit enter such as: subject.new_record? = true However when I try to save a record using: subject = Subject.new(:name = First Subject,

[Rails] Re: New rails user - Trying to understand why console wont run save command

2011-11-26 Thread Steve Mr.
wow. The quote was the issue. Unbelievable. Thanks. I'm back to cranking out this tutorial -- 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

Re: [Rails] Dynamic css files using scss

2011-09-13 Thread steve ross
This is a heck of a lot easier to do in the presentation than the style. Consider this: body .red background-color: red .green background-color: green body class=%= @theme_main_color % Stuff inside /div In your controller (or application controller), simply set @theme_main_color

[Rails] RubyConf 2011 Talks app

2011-09-03 Thread Steve Downie
can use. ;-) Once I've got this latest part working, I'll make the sources available on GitHub along with the data in MySQL format. -- Steve s...@comcast.net -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send

[Rails] Technical writer familiar with Rails and documenting a RESTful API

2011-04-02 Thread steve ross
when I replied. If something comes up, please let me know -- I'm happy to look at interesting work! Regards, Steve Ross On Mar 26, 2011, at 1:20 PM, Bill Walton wrote: Hi Steve, Thanks for asking. I've engaged someone who I think is going to work out. If not, I'll give you a shout

Re: [Rails] [JOBS] Technical writer familiar with Rails and documenting a RESTful API

2011-03-26 Thread steve ross
Any luck with this, Bill? I might be able to do it if the specifics are right... Steve Ross On Feb 28, 2011, at 7:12 AM, Bill Walton wrote: I have a short-term contract position opening for a technical writer. The position is telecommute and is probably a week to 2 weeks worth of work

[Rails] Looking for Junior Ruby on Rails programmer in Chicago-

2011-03-11 Thread Steve Omans
I am developing a social media site for healthcare and would like to hire a contractor in Chicago to build my site- Healthcare Social Media site for 1.0. Please respond with healthcare sites and level of ability and hourly or fixed rates. -- You received this message because you are subscribed

Re: [Rails] Netbeans dumps Rails

2011-02-02 Thread Steve Spiller
On 2 February 2011 15:47, Mauro mrsan...@gmail.com wrote: On 2 February 2011 15:43, Ahmy Yulrizka ahmy...@gmail.com wrote: I hope that textmate have breakpoint and debugging like netbeans Netbeans rails support is discontinued? Ok, I've destroyed netbeans from my pc. Eh? Why? It's not like

[Rails] UI Development

2011-01-27 Thread Steve A.
Hi there Would like to know if anything exists, specifically designed and built to work with Rails, for UI development? Something akin to Google Web Toolkit (GWT)? Thanks Steve -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google

Re: [Rails] Netbeans dumps Rails

2011-01-27 Thread Steve Spiller
On 27 January 2011 16:29, Michael Pavling pavl...@gmail.com wrote: On 27 January 2011 16:25, Fred Ballard fredb...@gmail.com wrote: On Thu, Jan 27, 2011 at 10:23 AM, Michael Pavling pavl...@gmail.com wrote: http://netbeans.org/community/news/show/1507.html Messed up on their part. I

[Rails] Re: Rails, Advanced Email Processing

2011-01-06 Thread Steve S.
Hey. This isn't a terrible thing to undertake but there's not so much information available. I wrote a couple of blog posts about the subject of receiving email(http://steve.dynedge.co.uk/2010/09/07/incoming-email-in-rails-3-choosing-the-right-approach/) and testing

[Rails] strange message format on validation error

2010-12-12 Thread Steve Duncan
substituted properly. Anyone have any ideas? Thanks! Steve -- 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 unsubscribe from this group, send email to rubyonrails-talk

Re: [Rails] Re: Render partial generate unwanted spaces

2010-12-06 Thread Steve Spiller
if it's the adding of cr/lf, try scite - it has the ability to specify and convert eol to and from cr, cr/lf, or lf. A bit of a pain to do manually, but I dn't know how to do automatically. On 6 December 2010 18:45, Julien julien.ap...@gmail.com wrote: On 6 déc, 15:28, Julien

[Rails] Re: ANNOUNCE: Acts_as_indexed 0.4.3 - Pure Ruby full-text indexed search

2010-11-29 Thread Steve Austen
Great Post.I like the link.Now expecting some good ideas from your upcoming post http://www.dealsourcedirect.com/ion-tape2pc.html -- 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

[Rails] Re: Flickr on rails

2010-11-29 Thread Steve Austen
Great Post.I like the link.Now expecting some good ideas from your upcoming post http://www.dealsourcedirect.com/ion-tape2pc.html -- 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

[Rails] Re: display the first n words from a string

2010-11-29 Thread Steve Austen
hi its seems like you have done a hard work on it. I have got lots of information from your post. Really appreciate your work.!! It was describe very nicely keep us doing good work.. http://www.dealsourcedirect.com/ion-tape2pc.html -- Posted via http://www.ruby-forum.com/. -- You received

[Rails] Re: Serving up images dynamically and preventing hotlinks

2010-11-29 Thread Steve Austen
hi its seems like you have done a hard work on it. I have got lots of information from your post. Really appreciate your work.!! It was describe very nicely keep us doing good work.. http://www.dealsourcedirect.com/ion-tape2pc.html -- Posted via http://www.ruby-forum.com/. -- You received

[Rails] Re: /archives/:year/:month/:day routes with REST?

2010-11-29 Thread Steve Austen
I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the comment here! http://www.dealsourcedirect.com/ion-tape2pc.html -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] Re: ruby on rails search engine

2010-11-29 Thread Steve Austen
Great Post.I like the link.Now expecting some good ideas from your upcoming post http://www.dealsourcedirect.com/ion-tape2pc.html -- 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

[Rails] Re: ANNOUNCE: Acts_as_indexed 0.1 - Pure Ruby full-text indexed

2010-11-29 Thread Steve Austen
hi its seems like you have done a hard work on it. I have got lots of information from your post. Really appreciate your work.!! It was describe very nicely keep us doing good work.. http://www.dealsourcedirect.com/ion-tape2pc.html -- Posted via http://www.ruby-forum.com/. -- You received

[Rails] Re: Looking for helper or plugin to format last login date.

2010-11-29 Thread Steve Austen
I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the comment here! http://www.dealsourcedirect.com/ion-tape2pc.html -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] Re: no such file to load -- sqlite3 WITH mysql2

2010-11-29 Thread Steve Mills
OK. I now know why this is happening but I don't know what to do to fix it... in the app folder is a file store.rb and this contains the following lines... ActiveRecord::Base.establish_connection( :adapter = 'sqlite3', :database = 'db/development.sqlite3') It is these lines that are

[Rails] Re: Re: no such file to load -- sqlite3 WITH mysql2

2010-11-29 Thread Steve Mills
Colin Law wrote in post #964785: To quote from your OP And a search of my project shows no files containing any reference to sqlite3. What can I say? Windows 7 search is not too good. It brought up files that mentioned the target words in comments but it did not bring up this particular

[Rails] Re: no such file to load -- sqlite3 WITH mysql2

2010-11-29 Thread Steve Mills
A bit more of the code - to clarify the origin... #--- # Excerpted from Agile Web Development with Rails, 4rd Ed., # published by The Pragmatic Bookshelf. # Copyrights apply to this code. It may not be used to create training material, # courses, books, articles, and the like. Contact us if you

[Rails] Re: Re: Re: no such file to load -- sqlite3 WITH mysql2

2010-11-29 Thread Steve Mills
Colin Law wrote in post #964799: I seriously suggest considering switching to Ubuntu (or similar). You would not regret it... I am doing the tutorials in parallel on Ubuntu. Unfortunately the test functionals issue I mentioned above that started me down this path occurs there too. My

[Rails] Re: Re: no such file to load -- sqlite3 WITH mysql2

2010-11-29 Thread Steve Mills
Hassan Schroeder wrote in post #964802: On Mon, Nov 29, 2010 at 8:35 AM, Steve Mills li...@ruby-forum.com wrote: A bit more of the code - to clarify the origin... utterly irrrelevant. :database = 'db/development.mysql2') The line above is *wrong* -- look at your config/database.yml

[Rails] Re: Re: Re: no such file to load -- sqlite3 WITH mysql2

2010-11-29 Thread Steve Mills
Marnen Laibow-Koser wrote in post #964825: Your development environment is no concern of your customers. What do you mean by that's what my customers want? Why do you think you need to work on Windows? Remember, you're developing *server-side* applications here that have nothing to do with

[Rails] Re: Re: Re: no such file to load -- sqlite3 WITH mysql2

2010-11-29 Thread Steve Mills
Hassan Schroeder wrote in post #964823: On Mon, Nov 29, 2010 at 9:48 AM, Steve Mills li...@ruby-forum.com wrote: The line above is *wrong* -- look at your config/database.yml entries and compare. That is simply not a valid MySQL entry. I know that line is wrong - Rails tells me that - what

[Rails] Re: Re: Re: Re: no such file to load -- sqlite3 WITH mysql2

2010-11-29 Thread Steve Mills
Hassan Schroeder wrote in post #964841: On Mon, Nov 29, 2010 at 10:42 AM, Steve Mills li...@ruby-forum.com wrote: Clearly what is required is a single parameter which specifies the database, something like, localhost:uname@pw/depot_v_development Uh, clearly? Actually, clearly that's

[Rails] Re: consume web services with a rails app?

2010-11-26 Thread Steve Austen
I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the comment here! http://www.dealsourcedirect.com/toy-story-lamp.html -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails:

[Rails] toy story lamp

2010-11-26 Thread Steve Austen
hi its seems like you have done a hard work on it. I have got lots of information from your post. Really appreciate your work.!! It was describe very nicely keep us doing good work.. www.dealsourcedirect.com/toy-story-lamp.html -- Posted via http://www.ruby-forum.com/. -- You received this

[Rails] Re: Re: Re: no such file to load -- sqlite3 WITH mysql2

2010-11-25 Thread Steve Mills
Luciano Sousa wrote in post #963876: post your rake db:migrate --trace... Done. http://pastie.org/1325873 Kind Regards Steve -- 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

[Rails] no such file to load -- sqlite3 WITH mysql2

2010-11-24 Thread Steve Mills
There are many threads showing the error... no such file to load -- sqlite3 BUT they are all reported by people using sqlite3 wherease I am using mysql2. My gemfile clearly says mysql2. My database.yml file definitely only has mysql2 configuration in it. And a search of my project shows no

[Rails] Re: no such file to load -- sqlite3 WITH mysql2

2010-11-24 Thread Steve Mills
Colin Law wrote in post #963675: It might be worth posting the complete output from the rake command with --trace specified. Also which Rails are you using? Which OS? Is this a new install and this is your first app? Output from gem list. Colin Hmmm. I forgot a lot of clues there didn't

[Rails] Re: no such file to load -- sqlite3 WITH mysql2

2010-11-24 Thread Steve Mills
Steve Mills wrote in post #963677: I'm in the midst of wiping the DEPOT version v and setting it up again. Version g for example doesn't have this problem. Will report back in 10 mins or so on whether setting it all up again worked or changed anything. That didn't make any difference

[Rails] Re: Newbe: rails version issue

2010-11-13 Thread Steve Mills
Alexandr Kim wrote in post #960797: just remove rake.gemspec and it will work. It worked for me at least. http://rubyforge.org/forum/forum.php?thread_id=48830forum_id=37643 Thanks for the tip - it worked! -- Posted via http://www.ruby-forum.com/. -- You received this message because you

Re: [Rails] Beginner on RoR

2010-11-10 Thread Steve Spiller
On 9 November 2010 23:39, Filippos filippos...@gmail.com wrote: Hello there dear Ruby on Rails experts. I decided to dive into the world of web development and Ruby on Rails is my cutting-edge choice for developing and deploying webapps. Unfortunately i can not find any book to help and

[Rails] Re: Rollback error message

2010-11-08 Thread Steve Alex
to go that path. Didn't know you could add errors to the object. I know now more than I did yesterday. Steve -- 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

[Rails] Rollback error message

2010-11-07 Thread Steve Alex
or rolled back? Steve -- 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 unsubscribe from this group, send email to rubyonrails

Re: [Rails] Why Ruby on Rails?

2010-11-03 Thread Steve Spiller
On 3 November 2010 17:52, Ruby Me li...@ruby-forum.com wrote: Hi everyone, I would like to ask you why should I use Ruby on Rails? And I have a silly question hope I can answer it, is it true that the creators of ruby on Rails are gay? I've just read that and want to make sure. People on

Re: [Rails] rspec test case

2010-10-21 Thread steve ross
On Oct 20, 2010, at 11:34 PM, Ishit Parikh wrote: I want test case in rspec for: @drugs = Drug.where('drug_category_id = ?', params[:id]) Has anybody idea about it? describe Drug it should really be posted to the rSpec Google Group :) it would be helpful for you to read the Prag.

Re: [Rails] Re: rspec test case

2010-10-21 Thread steve ross
On Oct 21, 2010, at 1:48 PM, Robert Walker wrote: Steve Ross wrote in post #956143: On Oct 20, 2010, at 11:34 PM, Ishit Parikh wrote: I want test case in rspec for: @drugs = Drug.where('drug_category_id = ?', params[:id]) Assuming this line is in a controller action... it find Drugs

[Rails] Re: Newbe: rails version issue

2010-10-18 Thread Steve Mills
Hi Kevin. In the end I uninstalled Ruby 1.9.2 and installed version 1.9.1 and the problem went away. Kind Regards Steve -- 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: Newbe: rails version issue

2010-10-18 Thread Steve Mills
there. There are patches available to fix it but the authors assume that we all know how to apply a patch whereas newbies like myself haven't a clue - yes we can download the patch, but we don't know how to apply it. Any hints? :) Kind Regards Steve -- Posted via http://www.ruby-forum.com/. -- You received

[Rails] Re: Newbe: rails version issue

2010-10-18 Thread Steve Mills
Marnen Laibow-Koser wrote in post #955209: Steve Mills wrote in post #955200: [...] If you can point me to a patch you've found, I may be able to be of more help. Thanks - I'm working both in Windows and Ubuntu - but Windows primarily because that's where my Development Environment

[Rails] Re: Newbe: rails version issue

2010-10-18 Thread Steve Mills
P.S. I should also have mentioned I'm working with RubyMine to learn how to build Rails web apps. -- 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

[Rails] Re: Newbe: rails version issue

2010-10-18 Thread Steve Mills
The content was... diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index 266d717..0e9f39a 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -515,7 +515,7 @@ install?(:ext, :comm, :gem) do version = open(src) {|f| f.find {|s| /^\s*\w*VERSION\s*=(?!=)/ =~ s}} or next version =

[Rails] Re: Newbe: rails version issue

2010-10-18 Thread Steve Mills
interest in it. Thanks very much for persisting with this issue and pushing me in the right direction :) Kind Regards Steve -- 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: Newbe: rails version issue

2010-10-18 Thread Steve Mills
is spread thin along many platforms at this particular time. You have invested quite a bit of time in this reply, and I thank you for that. Kind Regards Steve -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

Re: [Rails] newbie q on activerecord - has_one and has_many on same table?

2010-10-04 Thread steve ross
Parent has_many :children scope :primary, where(:role = 'primary') Or something like that. The syntax of scope, or named_scope differs depending on the version of Rails, but you get the idea... You'll probably want to add code to make sure that only one child has the primary role for a

[Rails] Newbe: rails version issue

2010-10-03 Thread Steve Mills
no idea. I am an experienced and seasoned developer but totally new to Ruby. Any help gratefully accepted. Kind Regards Steve -- 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: Newbe: rails version issue

2010-10-03 Thread Steve Mills
EXECUTABLE: C:/Ruby192/bin/ruby.exe - EXECUTABLE DIRECTORY: C:/Ruby192/bin - RUBYGEMS PLATFORMS: - ruby - x86-mingw32 - GEM PATHS: - C:/Ruby192/lib/ruby/gems/1.9.1 - C:/Users/Steve/.gem/ruby/1.9.1 - GEM CONFIGURATION: - :update_sources = true - :verbose = true

[Rails] Legacy Single Table Inheritance - Specify Discriminator?

2010-10-01 Thread Steve Shapero
I have a legacy database that was designed to work with Hibernate. I have the following class hierachry: class Status ActiveRecord::Base class ItemStatus Status set_inheritance_column :item_type class MediaItemStatus Status set_inheritance_column :item_type My issue is that the

Re: [Rails] Missing template classified/update.erb in view path app/view

2010-09-19 Thread steve ross
Typically your show action does not allow for user input. The edit action does. In any case, is there a classified/edit.erb and if you are trying to render it, then it implies that the update failed. Do you know why? On Sep 19, 2010, at 11:03 AM, Faisal Basha wrote: Iam trying to build a

[Rails] Re: Rails is slow to load

2010-08-05 Thread Steve
For comparison, from typing script/server to having a running instance of mongrel hosting out a rails app on my machine takes ~2 seconds. -- 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

Re: [Rails] Re: Re: Rails 3 RC

2010-07-23 Thread Steve Spiller
On 23 July 2010 21:47, Greg Donald gdon...@gmail.com wrote: On Fri, Jul 23, 2010 at 3:23 PM, Marnen Laibow-Koser li...@ruby-forum.com wrote: If name-calling is the best you can do, please don't bother. Truth hurts. -- Greg Donald destiney.com | gregdonald.com -- You received this

[Rails] Re: Saving XMLSchema datetime into sqlite/mysql

2010-07-21 Thread Steve Root
On 21 July, 08:08, Frederick Cheung frederick.che...@gmail.com wrote: On Jul 20, 9:31 pm, Steve Root ukr...@gmail.com wrote: If I save that to a regular string I get what looks correct to me: 2010-07-20 11:49:19 but saved in the entrycreated column it outputs as: Sat Jan 01 11:49:19 UTC

Re: [Rails] possible?

2010-07-20 Thread Steve Spiller
On 20 July 2010 16:42, Dries steenhouwer.dr...@gmail.com wrote: Somebody who think it's possible? Yes -- 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

[Rails] Saving XMLSchema datetime into sqlite/mysql

2010-07-20 Thread Steve Root
to save this datetime correctly pleased. In case it's relevant, on my dev machine I have sqlite. Eventually it will be on mysql. Thanks for any help, Steve -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email

  1   2   3   >