Re: [Rails] Re: Good queue manager?

2015-07-20 Thread Jeff Pickhardt
Thanks. What I'm looking for is an admin dashboard to manage your queues, see how many jobs are in it, see what's failing, etc. Do you know of anything like that? -- Sent from my Android. On Jul 20, 2015 12:32 PM, "Taras Matsyk" wrote: > Hi Jeff, > > I am not so adv

[Rails] Good queue manager?

2015-07-17 Thread Jeff
What's a good admin interface for managing your queues (like delayed job)? I had a good experience with Google App Engine's, but that was for Python, not Rails, so I'm wondering if there's something similar. -- You received this message because you are subscribed to the Google Groups "Ruby on

Re: [Rails] incompatible character encodings: UTF-8 and ASCII-8BIT

2015-01-07 Thread Jeff Burly
acter-set = utf8 ... [mysqld] ... collation-server = utf8_unicode_ci init-connect = 'SET NAMES utf8' character-set-server = utf8 ... [mysql] ... default-character-set = utf8 ... Hope that helps, Jeff On Tuesday, January 6, 2015 4:36:46 AM UTC-8, Diego Dillenburg Bueno wrote: > >

[Rails] Re: HELP Installing older versions of rails on OSX?

2014-07-15 Thread Jeff Lockyer
So with this, could I confidently install Rails 1.1.6 and Ruby 1.8.6 ? Because thus far, attempting to get these two in line is turning out to be a real headache... :( -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby

[Rails] HELP Installing older versions of rails on OSX?

2014-07-15 Thread Jeff Lockyer
.8.7 and RubyGems 1.3.6 is there a way to pass the version of Rails to the gem installer ? Thank you in advance. Jeff -- 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 f

Re: [Rails] Trigger before save and after save from external process?

2014-03-29 Thread Jeff
What do people who use SequelPro (and related tools) do to trigger their action filters usually? Writing an API sounds ideal but what if you have little control over the tool. On Friday, March 28, 2014 6:46:37 AM UTC-7, mike2r wrote: > > > > On Friday, March 28, 2014 8:47:24 AM UTC-4, Hassan

[Rails] Trigger before save and after save from external process?

2014-03-27 Thread Jeff
I have an external process changing the database of my app. Is there a good way to trigger the before save and after save filters for models that get updated, when it is an external process changing it? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails

[Rails] Rack middleware for shared connection pools?

2014-03-27 Thread Jeff
I have a Rails app that makes connections to other DBs. There may be multiple users connecting to multiple DBs. The app makes a database connection as part of an action. However, I noticed a problem: there's too many DB connections remaining open, which is causing the DB to not have enough con

[Rails] Re: Hook into Exception Chain

2013-11-12 Thread Jeff Lewis
e to wrap that work in a begin ... rescue Exception => e2 ... end ... before then re-raising the originally caught exception. Jeff On Tuesday, November 12, 2013 11:26:47 AM UTC-8, sol wrote: > > Hi Jeff, thanks for your reply! > > I found the article here: > > http://www.s

[Rails] Re: Hook into Exception Chain

2013-11-12 Thread Jeff Lewis
rver Error in 17ms [c55f5] ZeroDivisionError (divided by 0): app/controllers/foo_controller.rb:89:in `/' app/controllers/foo_controller.rb:89:in `testfoo' ... Jeff On Tuesday, November 12, 2013 6:40:12 AM UTC-8, sol wrote: > > Hi there, > > I'm using Log4r in my rails

[Rails]

2013-11-05 Thread Jeff Roxas
-- 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 this group, send email to rubyonrails-talk@goog

[Rails] Self Teaching NEWBIE question - Console issue

2013-03-11 Thread Jeff G.
front. C:\RailsInstaller\Ruby1.9.3\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) "C:/Users/Jeff Gray/RubymineProjects/sample_apps/script/rails" console development C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/irb/completion.rb:9:in `require': can

[Rails] Re: CSRF resets my session in Firefox

2013-01-10 Thread Jeff Miller
Very confusing and hard to track down, but my coworker and I managed to figure it out. Thanks all! - Jeff -- 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: CSRF resets my session in Firefox

2013-01-09 Thread Jeff Miller
Thanks for the response. Yeah, it's validating fine. I have discovered that the hit_id that I have in the session at the end is actually incremented by one, like it completely recreated the session, just without a shopper_id. Can't replicate in any other browser than firefox... (on Mac) -- Po

[Rails] CSRF resets my session in Firefox

2013-01-09 Thread Jeff Miller
Hello all, I've been trying to diagnose an issue with CSRF and Firefox specifically. I've got an ajax based form, using UJS (yes, I have csrf_meta_tag in my layout and I've tried adding the X-CSRF-Token header to the ajax beforeSend events without any luck)... The form just posts some data to an

Re: [Rails][Jobs] Permanent hire in Ottawa

2012-12-01 Thread Jeff
Hey, I know this was an old post of your. By any chance are you still interested in speaking with Rails programmers? On Monday, May 30, 2011 10:33:44 PM UTC-4, Long wrote: > > Anyone in Ottawa (or is relocating to :) Canada looking for a Rails > position? Send me a note for more information. > >

[Rails] Re: Re: find_by_sql - ActiveRecord - Help please.

2012-11-07 Thread Jeff Lockyer
lin Law wrote in post #1083465: > On 7 November 2012 22:06, Jeff Lockyer wrote: >> NoMethodError (undefined method `province' for nil:NilClass): >> /path/file.rb:302:in `set_no' >> >> So I look on that line, in the set_no definition, which is where I was &

[Rails] Re: find_by_sql - ActiveRecord - Help please.

2012-11-07 Thread Jeff Lockyer
d_by_sql call. Does this make any more sense now ? I have been through many attempts to resolve this, and can work with parameters, etc but with DB returns it seems I am missing something. Colin Law wrote in post #1083450: > On 7 November 2012 20:07, Jeff Lockyer wrote: >> I am new t

[Rails] find_by_sql - ActiveRecord - Help please.

2012-11-07 Thread Jeff Lockyer
I am new to the language and trying to add a couple of simple tests on user input, followed by a DB query, then using the returned values (where the problem lies) I first run a find_by_sql similar to this @my_names = modelname.find_by_sql I then check to see if NO returns via if @my_names.size

[Rails] Re: LDAP gems: paged search with net-ldap

2012-10-01 Thread Jeff Lewis
Hi Adam, I haven't used net-ldap gem (I've always just used ruby-net-ldap gem for past several yrs for various projects), but ... Here's a link to the specific note in the current src regarding that setting: https://github.com/RoryO/ruby-net-ldap/blob/master/lib/net/ldap.rb#

[Rails] Re: Re: Rails 2 to Rails 3 mysql migration?

2012-09-14 Thread Jeff Pritchard
Colin Law wrote in post #1075952: > On 13 September 2012 22:20, Jeff Pritchard wrote: >>> Colin >> >> Thanks Colin! >> >> This is sort of: >> binary data --> long list of SQL statements >> long list of SQL statements --> binary data using n

[Rails] Re: Rails 2 to Rails 3 mysql migration?

2012-09-13 Thread Jeff Pritchard
Colin Law wrote in post #1075905: > On 13 September 2012 21:41, Jeff Pritchard wrote: >> db over from the old server, or if there will be a need for some sort of >> a migration? >> >> Any info on what I'm up against there will be much appreciated. > > In t

[Rails] Rails 2 to Rails 3 mysql migration?

2012-09-13 Thread Jeff Pritchard
I have an old rails project that is currently in Rails 2.3 I'm about to undertake updating the project to Rails 3.2. The old project's production server is on mysql 5.0 and has a medium size database (not huge, but certainly big enough that I need to keep the data after I upgrade the app). If I

[Rails] Authorization and Routes

2012-07-16 Thread Jeff
ing it in some sort of global check_if_signed_in function that I could call at the top of various controller methods. Anyway, how is that typically done in Rails? Seems like something that would come up a lot for many sites (online banking, facebook, etc all require sign in prior to anything else)

Re: [Rails] autodetect': Could not find a JavaScript runtime

2012-07-09 Thread Jeff Kyzer
Is there somewhere that explains the new updates to gem files like needing rubyracer or execjs - like what things have changed? When I first started working with rails about 4 months ago there was no need for thanks On Sunday, July 8, 2012 10:42:05 PM UTC-6, Chitrank Samaiya wrote: > > Hi, >

[Rails] autodetect': Could not find a JavaScript runtime

2012-07-08 Thread Jeff Kyzer
Could not find a JavaScript runtime. I cant seem to get around this problem - any thoughts Thanks in advance Jeff -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.g

[Rails] intership

2012-06-12 Thread Jeff Kyzer
. C++ at one time, perl, IDL, unix and dos scripting, html,... I am in the Denver metro area. please contact me at kyzer...@yahoo.com if you have such a thing or know of someone who does Thank you for your time Jeff -- You received this message because you are subscribed to the Google Groups

[Rails] entry point

2012-06-12 Thread Jeff Kyzer
hanged. thanks jeff -- 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...@googlegro

[Rails] todo

2012-06-05 Thread Jeff Kyzer
Hello and good day I am running railinstaller, and I am getting a todo project created. Anyone know what this is about? thank you Jeff -- 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 r

[Rails] tips on improving rendering performance?

2012-05-03 Thread Jeff Pritchard
I have a complicated rails screen with terrible performance. I've been trying to narrow it down and figure out what is soaking up all the time, but there doesn't seem to be any one major suspect...lots of important stuff all taking up time. The standard Rails logging shows that most of it is rend

[Rails] Stuff added to my web page

2012-04-27 Thread Jeff Kyzer
Hi I started working with the book Ruby on Rails3 about 2 months ago. Going through the sample app was fun and interesting. I had to put it down for a couple of weeks. When I came back to it, I figured that I would just start over. So from the very first part - the addition of a title - new stu

[Rails] SQlite

2012-04-25 Thread Jeff Kyzer
ything out the window? Thank you for your help Jeff -- 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 rubyo

[Rails] Re: question about generate model

2012-04-25 Thread Jeff Kyzer
Thanks a ton Fred. I went to my routes.rb file and after staring at it for about an hour, I found the typo. dam typos. learning this is a ton of fun, but I am losing some hair. :) Jeff On Apr 24, 6:10 pm, Frederick Cheung wrote: > On Apr 23, 11:59 am, Jeff Kyzer wrote:> Hello >

[Rails] question about generate model

2012-04-23 Thread Jeff Kyzer
Hello I am trying to run the command: rails g model User name:string email:string and I am getting the below error, and i dont know what it means - please help thanks - Jeff C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/actionpack-3.2.0/ lib/action_dispatch/routing/mapper.rb:179:in

[Rails] Rspec

2012-04-18 Thread Jeff Kyzer
Hello all Something that once worked is no longer. I am learning Rails from the book "Ruby On Rails 3 by Michael hartl, so i am going "by the book" I am using rspec to run tests. I believe i have downloaded all the necessary gems and run bundle install. I am using windows 7. When I run rspec

[Rails] Re: sqlite3-ruby is invalid?

2012-04-08 Thread Jeff Kyzer
Thank up Walter. Think I looked at that line a hundred times. I know it had to work - it work all along. Thanks again Jeff On Apr 6, 1:40 pm, Walter Lee Davis wrote: > On Apr 6, 2012, at 3:37 PM, Jeff Kyzer wrote: > > > > > > > > > > > Hello > > I h

[Rails] sqlite3-ruby is invalid?

2012-04-06 Thread Jeff Kyzer
Hello I have been learning ruby on rails 3 from the Michael hartl book, and I have run into something that I can't figure out. After updating the gem file and running bundle install, I am getting the following error You passed :required as an option for gem 'sqlite3-ruby', but it is invalid. Her

[Rails] send_data always sends xml file?

2012-03-13 Thread Jeff Pritchard
I'm trying to use send_data to send a simple text file. Every reference I can find says I can supply a MIME type with the ":type" option and that will determine the kind of file I get on the machine that downloads the file I'm sending. Instead I ALWAYS get an XML file. here's the code snippet:

[Rails] install is hanging up

2012-02-19 Thread Jeff Kyzer
of pop-up alerts for other things like loading software. My uac is set to default. Someone please help me get this straightened out. Thank you for your help Jeff -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this

[Rails] learning Ruby and rails

2012-02-16 Thread Jeff Kyzer
college class or some videos. If these questions have already been answered, please just post me the link. Thank you Jeff -- 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 rubyon

[Rails] Re: error ncompatible character encodings: UTF-8 and ASCII-8BIT

2012-01-01 Thread Jeff Lewis
ring no matter what, I've used something like the following: ... IC_UTF8 = Iconv.new('UTF-8//IGNORE', 'UTF-8') ... def force_utf8(str) #note added extra space plus chop to fix certain cases. IC_UTF8.iconv("#{str} ")[0..-2] end ... > s2 =&g

[Rails] Re: Rspec :js => true issue (Rails 3)

2011-12-22 Thread Jeff Miller
*headslam* I just needed to RTFM more closely. I assumed the fields weren't being populated because I was using launchy to save_and_open_page to see if it had done so. Capybara-webkit doesn't instantiate a browser though, it access the renderer (webkit) directly. This is working now :P -- Pos

[Rails] Re: Rspec :js => true issue (Rails 3)

2011-12-22 Thread Jeff Miller
NOT fill in the text UNLESS I get rid of :js => true. I'm going to be testing ajax, so I need this functionality... This headache is turning into a migraine... Advice? Thanks, - Jeff -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed

[Rails] Re: Rspec :js => true issue (Rails 3)

2011-12-22 Thread Jeff Miller
esh during testing with # capybara and selenium. gem 'database_cleaner', '~> 0.6.7' As a dependency of capybara-webkit, I also installed the QT libraries. I still don't know why I was getting the "Zip is not a module" error, but I hope this helps someone in t

[Rails] Rspec :js => true issue (Rails 3)

2011-12-22 Thread Jeff Miller
y hard time trying to track down the cause of this... Heck, the only reason why I am using RSpec and Capybara is for Javascript support (other tests in the app use test unit). Any and all help is appreciated! Thanks, - Jeff -- Posted via http://www.ruby-forum.com/. -- You received this message

[Rails] Re: How can I get RVM/Passenger/Apache2 to play nicely together

2011-12-14 Thread Jeff Lewis
7;, :via => [:get] ... $ cat ./app/controllers/misc_controller.rb ... def ping render(:text=>"1\n") end ... $ curl -si http://foo.localhost/ping HTTP/1.1 200 OK ... 1 Another general benefit of this type of proxy'd setup is that if you or your client decides they want

[Rails] Re: Error for uuid

2011-12-08 Thread Jeff Lewis
ch will produce strings like "3ec1a6a0-017a-8fb4-0c26-56858ddc3886" Jeff On Dec 8, 4:54 am, Peter Vandenabeele wrote: > On Thu, Dec 8, 2011 at 12:25 PM, sachin kewale wrote: > > > MissingSourceFile in HomeController#index > > > hi Colin , > > following is the full

[Rails] Re: Rails 3.1 Nested Models

2011-11-09 Thread Jeff Miller
, - Jeff -- 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 rubyon

[Rails] Rails 3.1 Nested Models

2011-11-09 Thread Jeff Miller
ve done some logger.debug stuff to make sure it's going to the right blocks. >From what I've researched, this is the standard way to do this, but it doesn't seem to work (at least in Rails 3.1) can somebody point me in the right direction here? Any and all help is appreciated :

[Rails] Re: additional model attributes

2011-10-25 Thread Jeff Lewis
then on, for that instance, you can call place.address, and it will show up in place.to_json (since to_json is generated from place.attributes, which now has a k/v for address in attributes). Jeff On Oct 25, 8:16 am, Frederick Cheung wrote: > On 25 Oct 2011, at 16:00, "Lukas M."

[Rails] 500 Error

2011-10-05 Thread Jeff
I have set my routes.rb to point to the welcom#index I generated using the railsinstaller.org instructions and on my local machine I can view the page, but when I push my app to a cloud server (I've tried both engine yard and heroku) I get either the index.html (in the public folder) or the 500.htm

[Rails] Re: hosting ror app in XAMPP

2011-09-07 Thread Jeff Miller
Hi, I'm pretty sure what you're referring to is pointing Apache (the A in XAMPP) to your rails server. If this is your development environment, there isn't really a point in doing it. It would simply forward requests from port 80 and pass it over to port 3000, where you're likely running your

[Rails] Re: Atom Feeds, Rails 3.1

2011-09-07 Thread Jeff Miller
ad of post_url). I was able to pass the URL parameter into the troublesome statement and it works now: What was: feed.entry post do |entry| Is now: feed.entry(post, :url => blog_post_url(:title => post.url_title)) do |entry| Resolved! Thanks, - Jeff -- Posted via http://www.ruby-forum.com

[Rails] Atom Feeds, Rails 3.1

2011-09-07 Thread Jeff Miller
... The strange thing about this error is that I don't specify post_url anywhere in the builder... Somehow, it automatically wants to use that route helper. However, my routes are setup like blog_post_url and not just post_url. Anyone have any ideas? Thanks!! - Jeff -- Posted via http://

[Rails] Re: Character encoding problems.

2011-09-06 Thread Jeff Lewis
: v end ... and then adding a before_filter which modifies submitted params strings forcing them to utf-8 before accessing/using those params in the app. (Maybe there's a better/simpler way since I last tested this issue?) Jeff On Sep 6, 11:03 am, Perry Smith wrote: > Yes, I understand Ruby&#

[Rails] Re: Asset Pipeline (Rails 3.1.0.rc4)

2011-08-20 Thread Jeff Miller
UPDATE: I upgraded to Rails 3.1.0.rc6 and it's working now. I guess something is broken for the asset pipeline in rc4... -- 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] Asset Pipeline (Rails 3.1.0.rc4)

2011-08-20 Thread Jeff Miller
27;m not sure if this is expected operation or something is broken... Thanks in advance!! - Jeff -- 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 rubyonrai

[Rails] Re: background task

2011-07-25 Thread Jeff Lewis
b per project where all cron'd events related to that project are kept). The ability to easily develop/test/run scripts using your existing app's models/etc via runner (using the same exact calls you would/ could make in console) is one of the nicest built-in features of rails. Jeff On Jul 24

[Rails] Re: looping through results of complex query

2011-07-09 Thread Jeff Lewis
For anyone that's interested You can inspect the model's current attributes to see that additional data that was added in your custom query: ... puts("herd_ration: #{herd_ration.attributes.inspect}") ... Jeff On Jul 9, 10:11 am, clem_c_rock wrote: > app

[Rails] [Job] Ruby on Rails Developer Opportunity in Austin, TX

2011-07-08 Thread Jeff Brockmeyer
Our Client is looking for Software Engineers to be a part of a team developing complex systems to support a rapidly growing business. The complexity of our client’s system will challenge seasoned developers. The ideal candidate will have experience with large scale n-tiered applications. Requireme

[Rails] Does the asset pipeline (RoR 3.1) waste cycles?

2011-07-03 Thread Jeff Pickhardt
ource/third.js.coffee Ideally, the server would compile these to js ONCE, then bundle them, then create a static file. Otherwise it's going to be wasting cycles repeating effort. Can someone clarify what happens? Thanks, Jeff -- Jeff Pickhardt (650) 530-0036 pickha...@gmail.com -- You rec

[Rails] Re: [ANN] Rails 3.1.0.rc4 has been released!

2011-06-27 Thread Jeff Cohen
Have there been any showstopping issues since rc4? It's been a couple weeks since the last rc and I'm wondering if there are any showstopping issues I can (if I'm lucky) help resolve. (Or is there some obvious way to know this on Github that I'm overlooking?) Thanks! Je

[Rails] Re: Encoding

2011-06-21 Thread Jeff Lewis
gt; s2 = Iconv.new('UTF-8//IGNORE', 'UTF-8').iconv("#{s} ")[0..-2] => "foo bar" ruby-1.9.2-p136 :006 > s2.gsub(/bar/, 'biz') => "foo biz" And if that's not doing the trick, then maybe try forcing the string to utf8 first

[Rails] Re: Encoding

2011-06-17 Thread Jeff Lewis
outlined by Paul Battley (http://po-ru.com/diary/ fixing-invalid-utf-8-in-ruby-revisited/): ... def AppUtil.force_utf8(str) ic = Iconv.new('UTF-8//IGNORE', 'UTF-8') return ic.iconv("#{str} ")[0..-2] end ... Jeff On Jun 16, 5:27 pm, Erica wrote: >

[Rails] [JOBS] Ruby on Rails Developer Opportunity in Austin, TX (Direct Hire)

2011-05-04 Thread Jeff Brockmeyer
Thanks, Jeff *Jeff Brockmeyer* j...@lunadatasolutions.com IT Recruiter Luna Data Solutions, Inc. -- 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@googlegrou

[Rails] Change from 3.0.6 => Rails 3.0.7 "no such file to load -- action_mailer/railtie"

2011-05-01 Thread Jeff Deville
In my application.rb, I have this: #require "rails/all" require "action_controller/railtie" require "action_mailer/railtie" require "active_resource/railtie" require "active_model/railtie" (I didn't want ActiveRecord) This worked fine up to 3.0.6, but now fails with: /Users/jeffdeville/Document

[Rails] Re: Devise alters app layout links

2011-04-12 Thread Jeff Miller
Thank you, sir - you've saved my bacon as well as my mind. -- 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

[Rails] Devise alters app layout links

2011-04-12 Thread Jeff Miller
. Thanks in advance! - Jeff -- 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, s

[Rails] Re: implementation feedback appreciated

2011-03-08 Thread Jeff Lewis
a time, so that that item alone is processed and when done updates the ui, in order until all work is completed. Note that this type of strategy may not really be possible, nor preferable really compared to just doing it the right way ... async'ly. Jeff On Mar 7, 1:50 pm, Erwin wrote: &

[Rails] Re: Help hacking AR timestamps

2011-03-04 Thread Jeff Lewis
o is just make those mysql- specific calls (via exec) from within your migrations as needed, to ALTER the table column to TIMESTAMP (from DATETIME) and set any other mysql-specific things you need defined on that TIMESTAMP column in mysql. Jeff On Mar 3, 2:33 pm, Kendall Gifford wrote: > I

[Rails] Re: Rails 3 Model Without Database

2011-02-25 Thread Jeff Miller
Wow, thanks for the responses everybody! I'll be working on this a little later today, I'll definitely try out your suggestions. Thanks!! - Jeff -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby

[Rails] Rails 3 Model Without Database

2011-02-24 Thread Jeff Miller
doesn't exist. I'm pretty sure I've got the controller and model right, but I just need to tell Rails to NOT look in the database for this model... Any ideas? Thanks in advance, - Jeff -- Posted via http://www.ruby-forum.com/. -- You received this message because you are su

[Rails] Re: Factory Girl, Spork and Cucumber - duplicate model classes

2011-02-22 Thread Jeff Bigler
I'm experiencing the exact same problem Adam. I haven't been able to figure out what is causing it either... -- 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 unsubs

[Rails] Re: Thinking Sphinx can't find Sphinx.

2011-02-13 Thread Jeff Miller
Thanks for the heads up. Will do! pat wrote in post #981495: > Great to hear - if you get stuck again, feel free to ask on the > Thinking Sphinx google group - I only caught this post because it > appeared in Twitter via a saved 'thinking sphinx' search :) > > http://groups.google.com/group/thinki

[Rails] Re: Thinking Sphinx can't find Sphinx.

2011-02-13 Thread Jeff Miller
Pat my friend, you are a life saver. I created the sphinx.yml and added the bin path. It now is able to see Sphinx! I've still got some troubleshooting to do, but at least it works now! Thanks again, - Jeff pat wrote in post #981469: > Hi Jeff > > I'm guessing that searchd

[Rails] Re: Thinking Sphinx can't find Sphinx.

2011-02-13 Thread Jeff Miller
Ah, ok sphinx starts. It was set to 0.0.0.0 by default, but is now set to 127.0.0.1:9312. However, my rails installation still can't see Sphinx... -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" grou

[Rails] Re: Thinking Sphinx can't find Sphinx.

2011-02-13 Thread Jeff Miller
Hmmm, well it looks like it's actually Sphinx that's the problem, oops: jmiller@edison:~/dev/PlurPlay$ service searchd start Starting searchd [sudo] password for jmiller: Sphinx 0.9.9-release (r2117) Copyright (c) 2001-2009, Andrew Aksyonoff using config file '/usr/local/sphinx/etc/sphinx.conf'..

[Rails] Thinking Sphinx can't find Sphinx.

2011-02-13 Thread Jeff Miller
one point me in the right direction here? I've been trying to get this going for a few days now... Thanks in advance! Any and all help is appreciated! - Jeff -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby

[Rails] Re: Application Helper Problem

2011-01-30 Thread Jeff Miller
Ah! I got it. Thanks for pointing me in the right direction! -- 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 unsubscrib

[Rails] Re: Application Helper Problem

2011-01-30 Thread Jeff Miller
... content_tag("div", "#{label} #{form_field}".html_safe!, :class => "form_row") ... gives me the error: You can't call html_safe! on a String. Obviously I'm doing this wrong... where should I place html_safe! ? Thanks, - Jeff Miller -- Post

[Rails] Application Helper Problem

2011-01-30 Thread Jeff Miller
content_tag("div", "#{label} #{form_field}", :class => "form_row") end Then the ERB: <%= text_field_for form, "first_name" %> ...and finally when it's rendered: First name: ...which looks right, but it's escaped HTML text for some reaso

[Rails] Re: how to solve this problems gracefully

2011-01-28 Thread Jeff Lewis
" vals_buf << title end conditions = [sql_buf.join(" and ")] + vals_buf posts = Posts.where(conditions).order(...)... end return posts ... Jeff On Jan 28, 12:59 am, dan wrote: > hey guys,i follow the Ruby On Rails Guides,but i didn't see the quer

[Rails] Re: Routes not working

2011-01-19 Thread Jeff Miller
;user/register"' that reads 'post "user/register"' ... Does anybody know why this wasn't there to begin with? Thanks, - Jeff -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby

[Rails] Routes not working

2011-01-19 Thread Jeff Miller
hen I submit it (form_for :user) it complains that my route (user/register) does not exist... Not quite sure whats going on... In routes.rb, I have 'get "user/register"' listed. Can anyone clarify what I might be doing wrong? Thanks, - Jeff -- Posted via http://www.ruby

[Rails] Back link implementation question/problem

2011-01-11 Thread Jeff
ssue the query? Can the data be somehow "stored" in the list view html, so it's returned when the back link is clicked? Thanks, Jeff -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send emai

[Rails] Re: rvm and phusion passenger

2011-01-05 Thread Jeff Lewis
strated in this article. Unlike Mongrel and Thin clusters however you only need a single Phusion Passenger Standalone instance per web application and thus only a single address to proxy to. ..." Jeff On Jan 5, 4:53 am, Tom Mac wrote: > I have two rails applications currently running on s

[Rails] Re: Customize validation output

2010-12-31 Thread Jeff Lewis
x27;s error(s) along with the attr's label and form element. Note also that if you instead are calling @foo.create! or @foo.save! in your controller, you'd get at that same errors ordered hash via ActiveRecord::RecordInvalid: $ ./script/rails console ... > begin ; foo2 = Foo.create!({

[Rails] Re: activeldap anyone using?

2010-12-29 Thread Jeff Lewis
available from the usual sources. * gem install net-ldap Simply require 'net/ldap'. ..." Jeff On Dec 29, 1:21 pm, Mauro wrote: > Someone use activeldap? > I've installad the gem but it seems to me that tha latest activeldap > version require rails 2.3.8. > I us

[Rails] Re: Weird issue with converting floats to integer

2010-12-23 Thread Jeff Lewis
Or just change the way you calculate to get at the level of accuracy that you want/need: irb> ("291.15".to_f * 1000.0).to_i/10 => 29115 Jeff On Dec 22, 7:41 pm, Marnen Laibow-Koser wrote: > TomRossi7 wrote in post #970207: > > > Any idea why this calculates

[Rails] Re: Design Question - re: Polymorphic association

2010-12-07 Thread Jeff Lewis
stored in the products db table). The less round trips to the db, the less joins in the db, the more denormalized the db, the more indexed the db, ... all of these should help make direct db reads faster (at the cost of slower writes on such wide/sparse/denormalized tables). Jeff On Dec 6, 9:

[Rails] Re: Overriding or aliasing name of column in legacy database using Rails/ActiveRecord

2010-12-04 Thread Jeff Lewis
to that specific column in the legacy code. Jeff On Dec 3, 12:22 pm, Mike B wrote: > I'm writing a Rails application against a legacy database. One of the tables > in this legacy database has a column named object_id. Unfortunately > object_id is also an attribute of every object in R

[Rails] Re: Better approach to set global values?

2010-11-24 Thread Jeff Lewis
ult_company_name] => "My Company" If you wanted different vals per environment (ie test, development, production), then you could define APP_VALS in each of those environment config files. Jeff On Nov 24, 7:36 am, Owain wrote: > > However isn't there a better way to do

[Rails] Re: having trouble accessing a nested resource in rails 2.3.5

2010-11-08 Thread Jeff
I believe your problem is this: Blog.comments.all You want comments on a specific blog, so you need this instead: @blog = Blog.find(params[:id]) @comments = @blog.comments Hope this helps. Jeff purpleworkshops.com On Nov 7, 2:56 pm, aperture science wrote: > I am trying to add comments

[Rails] Re: Update password with Devise

2010-10-29 Thread Jeff N.
I am trying to do the same thing and having the same problems. Please let me know if you find a solution. Thanks, Jeff -- 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

[Rails] Re: STI with user and artist? Your thoughts please

2010-10-01 Thread Jeff
t; is_artist? > > def is_artist? >  artist > end > As an aside, there's an even nicer syntax: validates :master_piece, :presence => ture, :if => artist? If "artist" is the name of a boolean column, ActiveRecord provides "artist?" automatically. (Also,

[Rails] Which flavor of Linux should I use for a Rails dev box?

2010-09-30 Thread Jeff Mapleberry
Hey everyone, I'm looking to set up a development server for my Rails project and have a shiny new hard drive. Which version of Linux is the best to use? Or does it not really matter? Thanks in advance for any help. -- Posted via http://www.ruby-forum.com/. -- You received this message because

[Rails] Uploading photos

2010-09-27 Thread Jeff Schmidt
Hi all, Learning RoR (and loving it!) to develop a website. A requirement of the website is enabling users to upload photos to be made viewable (dynamically) on the website. Is this something I can develop with RoR? Thanks, Jeff -- You received this message because you are subscribed to the

[Rails] Re: heroku: command not found

2010-09-24 Thread Jeff
That seems to have done it. Thank you! On Sep 24, 3:33 am, Hassan Schroeder wrote: > On Thu, Sep 23, 2010 at 2:34 PM, Jeff Schmidt wrote: > > I'm trying to install and use Heroku and having the following problem: > : > > sudo gem install heroku > > My environmen

[Rails] heroku: command not found

2010-09-24 Thread Jeff Schmidt
:0 RUBY_VERSION=ruby-1.9.2-p0 _=/usr/bin/env Any help will be greatly appreciated! Thanks, Jeff -- 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 un

[Rails] Nil when calling joins method on Model

2010-09-18 Thread Jeff Gonzalez
gt;> Host.first.lsainfo => # >> LsaInfo.first.host => # >> LsaInfo.joins(:host).to_sql NoMethodError: undefined method `eq' for nil:NilClass from /Users/jeff/.gem/ruby/1.8/gems/activesupport-3.0.0/lib/ active_support/whiny_nil.rb:48:in `method_missing

  1   2   3   4   5   >