[Rails] How can a gem (unintentionally) change the migrations path?

2016-04-13 Thread Andy Jeffries
cross this before, nor has a skim through the Rails code given me any indication of how I'd change the migrations path if I wanted to! Thanks, Andy Reproducible steps: $ rails -v Rails 4.2.6 $ rails new civo-test [...] Bundle complete! 12 Gemfile dependencies, 55 gems now installed. Use

[Rails] Re: Why can't inline template be rescued?

2015-10-19 Thread Andy Ogzewalla
By default rescue only matches StandardError. If you are getting another type of Exception then your usage of rescue will not be sufficient to handle it. You will need to use the multiline form of begin/rescue. ``` begin ActionView::Template.new("Test <% if Crash %>", "inline template", handl

[Rails] Re: Endless scroll

2015-10-13 Thread andy nutter-upham
Railscasts is now premium content. Perhaps you could provide a bit more context. http://railscasts.com/episodes/114-endless-page-revised?view=asciicast As a User Experience side note, please be sure that infinite scroll is appropriate. Depending on the goals of your user it can be a frustrating

Re: [Rails] Can we create Kisok apps using ROR

2015-10-13 Thread andy nutter-upham
As Norbert suggests this is a User Agent (browser) feature. Have a look at these configurations for linux/chrome and linux/firefox. http://askubuntu.com/questions/124759/customize-ubuntu-for-a-library-internet-kiosk On Tuesday, October 6, 2015 at 4:38:35 PM UTC-4, Norbert Melzer wrote: > > Kiosk

Re: [Rails] Why does Rails throw an autoloading constant exception when I use threads?

2015-02-04 Thread Andy Rose
Oh wow, thanks, super interesting. So the issue is that the same file gets autoloaded twice... I see. Thanks so much man. Yeah will check out that article, really appreciate the answer. So as you said this *shouldn't* be an issue in production since as you said rails will eager load everything.

Re: [Rails] Why does Rails throw an autoloading constant exception when I use threads?

2015-02-04 Thread Andy Rose
, Xavier Noria wrote: > > On Wed, Feb 4, 2015 at 12:12 AM, Andy Rose > wrote: > > Hey guys, I posted this on Stackoverflow but it's not getting much love. >> >> Note in the question that I've found a solution to my problem. However >> I'm curious as to

[Rails] Why does Rails throw an autoloading constant exception when I use threads?

2015-02-04 Thread Andy Rose
Hey guys, I posted this on Stackoverflow but it's not getting much love. Note in the question that I've found a solution to my problem. However I'm curious as to what is going on here. Why does Rails encounter a race condition when auto-loading an ActiveRecord model association...? http://stack

[Rails] Re: :to argument to match() -- how is it converted to class/method name

2014-10-28 Thread Andy Ogzewalla
This is not really documented anywhere, and tracing through the source is difficult. Within Rails the string inflector methods #classify and #underscore are used to go between snake-case names and camel-cased class and module names. http://api.rubyonrails.org/classes/ActiveSupport/Inflector.htm

[Rails] Re: Authentication failed. when login heroku

2014-07-22 Thread Andy Zhang
It's an error on heroku side V:\>heroku status === Heroku Status Development: yellow Production: No known issues at this time. === Elevated rate of CLI/Toolbelt errors 2014/07/22 09:22:22 (~ 1h+) 2014/07/22 10:52:27 (~ 26m ago) investigating We are still investigating the T oolbelt errors. W

[Rails] Re: Authentication failed. when login heroku

2014-07-22 Thread Andy Zhang
Reinstalling the heroku toolbelt does'nt solve the problem. But installing on a new machine works! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receivi

[Rails] Re: Authentication failed. when login heroku

2014-07-22 Thread Andy Zhang
I have the same problem. But no solution yet. Any news from your side? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an

Re: [Rails] Difference between Cookies and Sessions

2014-07-07 Thread Andy Jeffries
ons" where requests have to come back to the same backend server. Hope this helps. Cheers, Andy *Andy Jeffries* Ruby on Rails, RubyMotion, jQuery Developer & Taekwondo 6th Dan Instructor andyjeffries.co.uk +44 7939 164853 @andyjeffries <http://twitter.com/andyjeffries>

Re: [Rails] Application trace in the error page for a Rails engine

2014-07-07 Thread Andy Jeffries
Yes, Engines are considered part of the framework level rather than the application level. If I developed an engine and released it as a gem, you wouldn't want my lines littering your application stack trace, right? Cheers, Andy *Andy Jeffries* Ruby on Rails, RubyMotion, jQuery Deve

Re: [Rails] What is your style? Single quote, double quotes or depends?

2014-03-26 Thread Andy Jeffries
ces one has to be careful that one is seeing a real > effect, which apparently you were, so that is all right. > Doh, fair point, thanks for catching that :-) Cheers, Andy *Andy Jeffries* Ruby on Rails, RubyMotion, jQuery Developer & Taekwondo 6th Dan Instructor andyjeffries.co.uk

Re: [Rails] What is your style? Single quote, double quotes or depends?

2014-03-25 Thread Andy Jeffries
On 17 March 2014 15:32, Colin Law wrote: > Did you try swapping the two lines round and checking that the result > is consistent? > Yes, it's consistent for me. Was it not for you or are you just asking? Cheers, Andy -- You received this message because you are subscribed

Re: [Rails] What is your style? Single quote, double quotes or depends?

2014-03-17 Thread Andy Jeffries
xample) without braces. I'd much rather have the almost unmeasurable wastage than risk a bug. Cheers, Andy -- 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 emai

[Rails] Announcing: ActiveRestClient

2014-02-11 Thread Andy Jeffries
http://whichdigital.github.io If anyone has any questions or runs in to any problems with it, let me know. It was mentioned on Ruby 5 this week, so grateful if anyone likes it and fancies tweeting/blogging about it... Cheers, Andy -- You received this message because you are subscribed to the Google G

[Rails] Re: Capybara throws printer errors with every test

2013-10-08 Thread Andy Joel
The problem seems to be the name of the action, "test", and nothing to do with printers at all. Any action that starts "test" seems to be affected, though I am still not sure why. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google G

[Rails] Capybara throws printer errors with every test

2013-10-07 Thread Andy Joel
I am in the process of upgrading from Rails 3 to 4. Whenever I run a test I always get two errors like this: Capybara::Rails::TestCase#test_printer_url: ActionController::UrlGenerationError: No route matches {:action=>"test", :controller=>"printers"} missing required keys: [:id] If I test all my

Re: [Rails] stub not working

2013-05-25 Thread Andy Lindeman
On Fri, May 24, 2013 at 8:07 AM, Aashish Kiran wrote: > Hi, > I am testing views. I dont understand why stubs are not working. > Can anyone help. > > view code : > > before(:all) do > @current_user = stub("User") > assigns[:message] = @current_user > end > > output: > NoMethodError: >

[Rails] Does anyone know what is causing auto-generated config.rb file for stylesheets?

2013-03-04 Thread Andy Ogzewalla
Recently a particular Rails app I'm working with began to auto-generate a file app/assets/stylesheets/config.rb. It looks similar to a Compass configuration file, but this app does _not_ use Compass. I've found a couple threads about this, but so far no answers. http://stackoverflow.com/question

Re: [Rails] What the Ruby Association

2012-07-12 Thread Andy Chambers
On Thursday, July 12, 2012 12:37:33 PM UTC-4, Walter Lee Davis wrote: > > > On Jul 12, 2012, at 12:30 PM, Jean-Sébastien D. wrote: > > > Walter Davis wrote in post #1068458: > >> On Jul 12, 2012, at 11:18 AM, Jean-Sbastien D. wrote: > >> > >>> rake db:rollback MMDDHHMMSS_model.rb > >> I do

Re: [Rails] Run performance tests without dumping database

2012-07-12 Thread Andy Chambers
On Thursday, July 12, 2012 12:01:15 PM UTC-4, Colin Law wrote: > > On 12 July 2012 15:37, Andy Chambers wrote: > > > > > > On Thursday, July 12, 2012 3:03:25 AM UTC-4, Colin Law wrote: > >> > >> On 11 July 2012 01:39, Andy Chambers > wrote: >

Re: [Rails] Run performance tests without dumping database

2012-07-12 Thread Andy Chambers
On Thursday, July 12, 2012 3:03:25 AM UTC-4, Colin Law wrote: > > On 11 July 2012 01:39, Andy Chambers > wrote: > > Hi, > > > > I'm trying to build a simple performance test on a rails 3 app that > operates > > on a large database (~150GB). We copy

[Rails] Run performance tests without dumping database

2012-07-11 Thread Andy Chambers
Hi, I'm trying to build a simple performance test on a rails 3 app that operates on a large database (~150GB). We copy production data to our dev/test setup every night so that we have a realistic environment for development. I followed the guide on creating a test and tried to run it using

[Rails] Models in sub-folders in Rails 3

2012-03-26 Thread Andy Joel
I have a Rails 2 project in which models are in sub-folders, but not in a name space app/models/sub_folder/posts.rb class Post < ActiveRecord::Base end The controllers are also in sub-folders, but are name spaced (views also in a corresponding sub_folder). app/controllers/sub_folder/posts_contr

[Rails] Request for Advice: "insert-only" ordering schema

2012-02-12 Thread Andy S
hin 30 minutes. Another idea is to create a new table Reserved that has_one reserved Order. When the order is processed or time runs out the Order referenced by Reserved is inactivated. Please let me know what your advice is. Thank you in advance. Best, Andy ActiveRecord::Schema.define(:ve

Re: [Rails] Re: Simple ActiveRecord serialise problem

2011-10-06 Thread Andy Jeffries
I've also just tried upgrading JSON to 1.6.0 (as that's the version that seems to be installed if I do gem install json), same problem. Cheers, Andy -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this

Re: [Rails] Re: Simple ActiveRecord serialise problem

2011-10-06 Thread Andy Jeffries
3.1.0) if there is an entry in serialized_attributes for a given attribute name (with a value put in to the coder variable) it calls coder.dump with the attribute value. So, I can't understand why JSON wouldn't work as a second parameter... Cheers, Andy -- You received this message becau

Re: [Rails] Re: Simple ActiveRecord serialise problem

2011-10-06 Thread Andy Jeffries
method on the class so it should be acceptable as the serializer. Is this article incorrect or my understanding of it? Cheers, Andy -- 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 ru

[Rails] Simple ActiveRecord serialise problem

2011-10-06 Thread Andy Jeffries
method `read' for nil:NilClass from /Users/andy/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.0/lib/active_support/whiny_nil.rb:48:in `method_missing' from /Users/andy/Code/FakePlatform/vendor/gems/Darwin/gems/json-1.4.6/lib/json/common.rb:286:in `load' from /Users/andy/.rvm

[Rails] problem with catch all route catching redirects to external websites

2011-10-01 Thread Andy S
#x27;go_to_external' end end This is an action that does a redirect to an external website: class SomeController < ApplicationController def go_to_external #should not be caught by the some_controller route, but is caught by it. redirect_to "https://example.com";, :sta

[Rails] Fwd: ROR Developer positions in Hamburg - Can anyone help??

2011-06-01 Thread Andy Clayton
remote working. The right candidate doesn't need to speak German as our company language is English so fluency in English is the only language requirement. Many thanks Andy -- Forwarded message -- From: Andy Clayton Date: Wed, Jun 1, 2011 at 2:50 PM Subject: ROR Developer posi

[Rails] ROR Developer positions in Hamburg - Can anyone help??

2011-06-01 Thread Andy Clayton
love to hear from any ROR developers who are seeking a new challenge. I look forward to hearing from you. Kind Regards Andy Clayton -- 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] Looking for a webmaster interested in real estate/advertising to work on a currently developing site

2011-04-28 Thread Andrew (Andy) Chang
I'm looking for an freelancing webmaster who can help me with an extremely interesting advertising start-up and work with 3 other programmers to make a site for a start-up. We are using Ruby on Rails for this website. Email achang...@gmail.com if interested. -- You received this message because

[Rails] Integrating the fb_graph or koala gem with devise+mongoid+omniauth in rails 3

2011-04-17 Thread Andy S
h or koala (or any other facebook API connection) with this devise+mongoid+omniauth base would be greatly appreciated. Best, Andy -- 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

[Rails] Can join tables be polymorphic?

2011-04-05 Thread Andy Tolle
For example: Currently I have: functions < functions_competencies < competencies exams < exam_competencies < competencies I'd like to dry up "functions_competencies" and "exam_competencies" by using a polymorphic association, by let's say 'attached_competencies': functions < attach

[Rails] Re: any gems to process PowerPoint files?

2010-11-30 Thread Andy
Unfortunately that's not going to work either. I really need to process these either in my Rails app or through a 3rd party service. Anyone know of any SaaS or web services that would do this? Thanks On Nov 29, 11:55 am, Walter Lee Davis wrote: > On Nov 29, 2010, at 10:49 AM, An

[Rails] Re: Error installing rails 3, get error: mail requires i18n (~> 0.4.1, runtime)

2010-11-29 Thread Andy
*I also uninstalled i18n 0.5.0 leaving i18n 0.4.2 to get everything working... Andy -- 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

[Rails] Re: Error installing rails 3, get error: mail requires i18n (~> 0.4.1, runtime)

2010-11-29 Thread Andy
Same just happened to me on Ubuntu 10.04 using RVM. Anyways, my theory at the moment is they just released i18n 0.5.0 and gem install rails installed 0.5.0 and mail gem requires i18n version 0.4.x. Here's the entire painful process of getting it working. abarrin...@andys-dev-box:~$ gem install

[Rails] Re: any gems to process PowerPoint files?

2010-11-29 Thread Andy
gem > > >http://code.google.com/apis/gdata/articles/gdata_on_rails.html > > > b > > > On Nov 22, 10:31 pm, Andy wrote: > > > > Does anyone know of any gems or plugins that can take a PowerPoint and > > > create images out of every slide and also acces

[Rails] any gems to process PowerPoint files?

2010-11-22 Thread Andy
Does anyone know of any gems or plugins that can take a PowerPoint and create images out of every slide and also access the text in each slide? -- 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] Overriding log_error in Rails3 not working

2010-10-13 Thread Andy
I have this in my application.rb: private def log_error(exception) super UserMailer.error_message(exception, clean_backtrace(exception), session.instance_variable_get("@data"), params, request.env ).deliver end I'

[Rails] What's your Real World Rails 3 performance like?

2010-10-01 Thread Andy
perspective what the community was experiencing. Thanks, Andy -- 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, sen

[Rails] Re: ERROR: Failed to build gem native extension (win server 2003/2008 ruby 1.9.1/1.8.7)

2010-09-20 Thread Andy Ho
try this: gem install mongrel_service --platform i386-mswin32 -- 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 unsubscrib

[Rails] Re: Simple Captcha - files still in "/tmp" directory and not displaying

2010-09-09 Thread Andy
Found the solution: https://rails.lighthouseapp.com/projects/8994/tickets/4063-rails-30-beta1-send_file-with-0-byte On Sep 9, 6:59 pm, Andy wrote: > I'm starting to narrow down the problem. > > The files are being created in the "/tmp" folder. > > But

[Rails] Re: Simple Captcha - files still in "/tmp" directory and not displaying

2010-09-09 Thread Andy
tOS server I configured myself (rather than a Rails host like EngineYard) so I'm guessing it's some sort of server issue. On Sep 9, 5:29 pm, Andy wrote: > I'm trying to use the Rails3 Simple Captcha version from > here:http://github.com/galetahub/simple-captcha > > It'

[Rails] Simple Captcha - files still in "/tmp" directory and not displaying

2010-09-09 Thread Andy
I'm trying to use the Rails3 Simple Captcha version from here: http://github.com/galetahub/simple-captcha It's working 100% fine on my local environment. In Production, I had to point the "convert" command to the correct directory and then reinstall ImageMagick with the FreeType lib. Now I'm not

[Rails] How can I do an onChange event with Rails3 and jQuery?

2010-08-27 Thread Andy
find any documentation anywhere that describes how to do this. Anyone know any resources or know how to do this? Thanks, Andy -- 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...@g

[Rails] Recommend a gem/plugin for autocomplete in Rails3 using jQuery?

2010-08-25 Thread Andy
Can anyone recommend a good gem or plugin for autocomplete in Rails 3 that only needs jQuery? I need to search multiple fields and multiple objects and display them in a clickable auto-complete list. Would it be best to just build this myself? -- You received this message because you are subsc

[Rails] Rails hosting in Canada?

2010-08-24 Thread Andy
Anyone have any recommendations for Rails hosting in Canada? It needs to be solid hosting, on the level of EngineYard and Blue Box Group. Thanks -- 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] JOBS: ROR Dev needed in Texas

2010-08-16 Thread Andy Kabbe
ROR Developer opening in Texas. Relocation expenses paid for. Direct - permanent employment. Opportunity to join an exceptional development team. Exceptionl benefits and training. Flat organization model. Desire energetic opinions. Agile environment. ROR Dev will design and develop new aut

[Rails] zxcvbnm

2010-08-12 Thread Jimmy Andy
class LoginController < ApplicationController def addprod @category=Cattab1.find(:all) @product=Prodtab.find(:all) @i=0 @checkvalue="" end def login @logincheck =Login.new @prodcheck=Prodtab.new if(session[:login_id]) Login.update(

Re: [Rails] Admin interface for Rails?

2010-08-02 Thread Andy Jeffries
It's a generator, but it comes up with quite nice 37 Signals style admin interfaces. http://github.com/andyjeffries/andy_admin Cheers, Andy -- Andy Jeffries http://andyjeffries.co.uk/ #rubyonrails #mysql #jquery Registered address: 64 Sish Lane, Stevenage, Herts, SG1 3LS Company n

Re: [Rails] Rescuing Errors

2010-07-28 Thread Andy Jeffries
Hoptoad -- Andy Jeffries http://andyjeffries.co.uk/ #rubyonrails #mysql #jquery Registered address: 64 Sish Lane, Stevenage, Herts, SG1 3LS Company number: 5452840 On 28 July 2010 11:26, Pale Horse wrote: > Ideally, what I need is a method of rescuing ALL errors that can occur >

Re: [Rails] Re: rails asset cache

2010-07-27 Thread Andy Jeffries
Sorry, no idea. (just to let you know that you're not being ignored it's just likely that no-one has an answer for you, this generally works fine for me). -- Andy Jeffries http://andyjeffries.co.uk/ #rubyonrails #mysql #jquery Registered address: 64 Sish Lane, Stevenage, Hert

Re: [Rails] rails asset cache

2010-07-23 Thread Andy Jeffries
r the last file if you list multiple stylesheets in stylesheet_link_tag). That way browsers can cache it long term and it will automatically change if you change one of the files during a new deployment. Cheers, Andy -- You received this message because you are subscribed to the Google Groups &quo

Re: [Rails] Re: starting with RoR

2010-07-22 Thread Andy Jeffries
cript/generate scaffold User login:string password:string > first_name:string last_name:string > Cheers, Andy -- 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...@googleg

Re: [Rails] starting with RoR

2010-07-22 Thread Andy Jeffries
inane questions - but my experience with RoR is zero! > I'm sure we'll all help you on here. Providing you post detailed questions (including any error messages, what you've tried etc) you're bound to get helpful answers. Cheers, Andy -- You received this messag

Re: [Rails] Send picture from iPhone

2010-07-22 Thread Andy Jeffries
environment it): Paperclip.options[:image_magick_path] = '/foo/bar/bin/' Cheers, Andy -- 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] Re: setup not invoked during unit testing

2010-07-21 Thread Andy Joel
Frederick Cheung wrote: > On Jul 20, 3:57�pm, Andy Joel wrote: >> >> test_setup does get invoked, so the file is being processed. I am >> guessing that somewhere there is another setup method that takes >> priority, but where would it be, and why does it take priori

[Rails] setup not invoked during unit testing

2010-07-20 Thread Andy Joel
I have a bunch of unit test files in a Rails project. One of them has stopped using the setup method before each test, or even if I invoke it in the test itself. After commenting out most of it, here is what is left: require 'test/test_helper' class GlcTest < ActiveSupport::TestCase def setup

Re: [Rails] Re: Git on MAC OS X

2010-07-19 Thread Andy Jeffries
git > > I get the following: > > -bash: /usr/local/bin/brew: /usr/bin/ruby: bad interpreter: No such file > or directory > Wow! That is weird. Where is your Ruby? On Mac OS X Ruby is available by default at that location: $ which ruby /usr/bin/ruby Try running which ruby in

Re: [Rails] Re: Does Nginx with Passenger actually work?

2010-07-19 Thread Andy Jeffries
ing to remember to start the server 3) Prefer to host as much as possible on the same technology (Apache, Passenger, MySQL is much better than Mongrel/SQLite even if you develop on Mac OS X and deploy on Linux). I know I do (all of the above). Cheers, Andy -- You received this message

Re: [Rails] Git on MAC OS X

2010-07-19 Thread Andy Jeffries
l -fsS http://gist.github.com/raw/323731/install_homebrew.rb)" Then you can install Git using: brew install git Cheers, Andy -- 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 rubyonrail

Re: [Rails] :controller, how does Rails recognize them?

2010-07-19 Thread Andy Jeffries
er at the end). http://www.example.com/users/show/1 Will map to the show actions of UsersController passing in a params[:id] of 1. And, in the last statement, what are we exactly saying? > That the / (http://www.example.com/) should go to the HomeController class's index action (as index is t

Re: [Rails] Re: Re: Ruby on Rails template designs

2010-07-19 Thread Andy Jeffries
> I've been meaning to put together a screencast sometime on it, but to be honest, it's very simple - just following the README should get you up and running. I won't get chance to do a screencast today, but I'll try to do it this week if I get a chance. Cheers, Andy -- Yo

Re: [Rails] Re: Ruby on Rails template designs

2010-07-19 Thread Andy Jeffries
Or as another example: http://github.com/andyjeffries/andy_admin :-) -- Andy Jeffries http://andyjeffries.co.uk/ #rubyonrails #mysql #jquery Registered address: 64 Sish Lane, Stevenage, Herts, SG1 3LS Company number: 5452840 On 18 July 2010 08:25, Abder-Rahman Ali wrote: > I th

Re: [Rails] Re: Added associations but don't see generated methods

2010-07-16 Thread Andy Jeffries
> > > Welcome to dynamic objects and classes :-) > Thanks. This restores my faith in Rails and enhances my appreciation > of newsgroups, especially this one. > Now I've got to put them to use! > Good luck. Post back if you have any more problems. Cheers, Andy --

Re: [Rails] Re: Added associations but don't see generated methods

2010-07-16 Thread Andy Jeffries
n memory only at runtime. Welcome to dynamic objects and classes :-) Try using script/console to execute them. Cheers, Andy -- 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..

Re: [Rails] Effects of a humongous Controller on performance?

2010-07-16 Thread Andy Jeffries
27;s time. I've had a lot of success with that in the past. Cheers, Andy -- 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 thi

Re: [Rails] Ruby - return true if any element in Array satisfies condition but false otherwise

2010-07-16 Thread Andy Jeffries
line. Something like > > You probably want ".detect" > http://ruby-doc.org/core/classes/Enumerable.html#M003123 > >any_bot_follower = followers.detect(false) { |f| f.bot? } > Or Enumerable#any? http://apidock.com/ruby/Enumerable/any%3F any_bot_follower = follo

Re: [Rails] Re: how to do url rewriting

2010-07-16 Thread Andy Jeffries
u'd have to redo the work. Cheers, Andy -- 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-tal

Re: [Rails] Re: named_scope multiple conditions

2010-07-16 Thread Andy Jeffries
in Frederick's mouth, but it simply means that it's ridiculously quick to build up the conditions object in Ruby compared to actually executing the SQL on the database (and communicating the SQL and response over the socket). Cheers, Andy -- You received this message because you are s

Re: [Rails] how to do url rewriting

2010-07-16 Thread Andy Jeffries
seem to be multiple posting the same question, phrased slightly differently without reading responses. Cheers, Andy -- Andy Jeffries http://andyjeffries.co.uk/ #rubyonrails #mysql #jquery Registered address: 64 Sish Lane, Stevenage, Herts, SG1 3LS Company number: 5452840 On 16 July 2010 11:53,

Re: [Rails] how can i hide controller and action name in url

2010-07-15 Thread Andy Jeffries
) and action(index) name from url. > http://guides.rubyonrails.org/routing.html If you look at section 2.3 of that document, it shows how to map '/login' to what would be '/sessions/new'. Cheers, Andy -- You received this message because you are subscribed to the Google Groups "Ruby o

Re: [Rails] Is TDD really followed in the industry ?

2010-07-14 Thread Andy Jeffries
ture tests using Cucumber to old Test::Unit tests. Cheers, Andy -- 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

Re: [Rails] on

2010-07-09 Thread Andy Jeffries
Good catch Hassan -- Andy Jeffries http://andyjeffries.co.uk/ #rubyonrails #mysql #jquery Registered address: 64 Sish Lane, Stevenage, Herts, SG1 3LS Company number: 5452840 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" grou

Re: [Rails] on

2010-07-09 Thread Andy Jeffries
> > this his the generated code from my haml code > > > Anglais option> > Français > Allemand > > > but I get a JS error > > this.form is undefined > > what did I missed ... > The onchange event is on the tag, so "this" is a form and doesn't have a ".form" method. Try doing: http://groups.goo

Re: [Rails] Re: Gentoo for Rails?

2010-07-09 Thread Andy Jeffries
ther) > As a Mac OS X user I don't particularly care about which distro to use (so I had no intention of making it a flame war), I was just trying to point out that it's not that hard :-) Cheers, Andy -- You received this message because you are subscribed to the Google Groups &qu

Re: [Rails] Elegant Registration / Log in fix

2010-07-09 Thread Andy Jeffries
ere may be a better way with Restful_authentication and you'll need to find out the param names you need to change the values for, but that may point you in a direction to get it working... Cheers, Andy -- Andy Jeffries http://andyjeffries.co.uk/ #rubyonrails #mysql #jquery Registe

Re: [Rails] [Rails3] Issue in modifying locale and redisplaying page

2010-07-09 Thread Andy Jeffries
eferred language in the headers (Accept-language) so you can use that by default. I can't remember if I18n.locale uses that (or just the system locale). Finally, your default_url_options is only used when generating urls for links using url_for and related functions - it doesn't set it as

Re: [Rails] Re: Gentoo for Rails?

2010-07-09 Thread Andy Jeffries
nstall rails passenger Configure Passenger as normal. What's hard? Cheers, Andy -- 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

Re: [Rails] Kind of object

2010-07-09 Thread Andy Jeffries
$ irb > class MyHash < Hash ; end => nil > h = MyHash.new => {} > h.is_a? Hash => true Cheers, Andy -- Andy Jeffries http://andyjeffries.co.uk/ #rubyonrails #mysql #jquery Registered address: 64 Sish Lane, Stevenage, Herts, SG1 3LS Company number: 5452840

Re: [Rails] Paypal Integration

2010-07-08 Thread Andy Jeffries
I'd recommend starting here... Episode 141: PayPal Basics<http://railscasts.com/episodes/141-paypal-basics> Cheers, Andy -- Andy Jeffries http://andyjeffries.co.uk/ #rubyonrails #mysql #jquery Registered address: 64 Sish Lane, Stevenage, Herts, SG1 3LS Company number: 545

Re: [Rails] Re: How can I hide my Ruby code?

2010-07-07 Thread Andy Jeffries
On 7 July 2010 01:25, Skip Levens wrote: > Props to Andy's solution - thats pretty awesome... hopefully not > everyone needs that! > Thanks Skip and I agree with your hope. There are so many weird things I've done on this project, it's been a great/interesting exper

Re: [Rails] Re: How can I hide my Ruby code?

2010-07-07 Thread Andy Jeffries
on stopping crackers, but sysadmins that "knew some ruby". > Add to that bonus nasties like directly frobbing the core of a running > VPS instance from the hypervisor, and you're back in security hell > again. > They're not using VPS/hypervisors. Cheers, Andy -- Yo

Re: [Rails] Re: Re: Re: How can I hide my Ruby code?

2010-07-07 Thread Andy Jeffries
a location where the client has > access. > Indeed, finding them in memory. I believe though that the requirement is to stop casual looking/tampering by the company's sysadmins rather than to stop a dedicated expert cracker. Cheers, Andy -- You received this message because you ar

Re: [Rails] Re: Re: How can I hide my Ruby code?

2010-07-07 Thread Andy Jeffries
mins or > are you trying to hide it from the client? > The first option :-) Cheers, Andy -- 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 unsu

Re: [Rails] Re: Re: How can I hide my Ruby code?

2010-07-06 Thread Andy Jeffries
On 6 July 2010 11:31, Michael Pavling wrote: > On 6 July 2010 11:19, Andy Jeffries wrote: > > You can do this (I've had to do it for a client) but it's not simple > > > > Very interesting approach. Will file that for future reference. > I hope you never n

Re: [Rails] Re: Re: How can I hide my Ruby code?

2010-07-06 Thread Andy Jeffries
t to zero so the last child never dies. I would however, recommend against doing this - server security and not giving out the username/password is far and away the best solution. I work in a specific industry in a country with a lot of security requirements so had no choice - but it's a solution an

Re: [Rails] problem finding find current page

2010-06-29 Thread Andy Jeffries
ust have found the Page object using some code, assign that to @current_story. A variable from the session? @current_story = session[:current_story]. We need a lot more information to be able to help. @current_story is an instance variable, but there's no information on what you're expe

Re: [Rails] (JOBS) Junior Rails Developer, London, UK

2010-06-28 Thread Andy Jeffries
We're actually looking for currently UK located developers. Thanks anyway, Andy -- Andy Jeffries http://andyjeffries.co.uk/ #rubyonrails #mysql #jquery Registered address: 64 Sish Lane, Stevenage, Herts, SG1 3LS Company number: 5452840 On 26 June 2010 08:21, ratnamraj varasala

[Rails] (JOBS) Junior Rails Developer, London, UK

2010-06-25 Thread Andy Jeffries
want a chance to switch or having been using Rails for a while but haven't been able to prove yourself, get in touch. * No telecommuting * Salary is early to late £20Ks depending on experience. Cheers, Andy -- You received this message because you are subscribed to the Google Groups &

Re: [Rails] Re: Mac and Rails

2010-06-18 Thread Andy Jeffries
I'm assuming you're not just working on a single Rails site and just do "rails s" or "script/server" when you need it up (I have locally running websites available all the time). Cheers, Andy -- You received this message because you are subscribed t

Re: [Rails] Need Help - New to RoR

2010-06-17 Thread Andy Jeffries
Look in your log file (your_app/log/*.log) - the error will be detailed in there. Also, it seems from the error message you're running in production mode, you should really switch to development then you'd see the full error message in your browser. Cheers, Andy -- Andy Jef

Re: [Rails] Off Topic Advice Needed (Time objects)

2010-06-16 Thread Andy Jeffries
to it, but I don't > want to re-invent the proverbial wheel. > This seems a fairly simple wheel to be worried about re-inventing though (or even to look forward to). OK, so you have an array of times. You sort through them based on: (predicted_time - actual_time).abs and pi

Re: [Rails] Off Topic Advice Needed (Time objects)

2010-06-16 Thread Andy Jeffries
conds (and parts of) why can't you just compare the two floating point values? What part are you stuck with? Can you give us some code with a comment on which bit you can't do. Andy -- You received this message because you are subscribed to the Google Groups "Ruby on

Re: [Rails] Mac and Rails

2010-06-15 Thread Andy Jeffries
cally on a Mac? Apologize for the v > basic question. :-) > As I said, you already have Rails and Apache ready to go. You need to install MySQL (or use sqlite in development) and that's it. I personally use TextMate, but RubyMine looks awesome if you don't mind the lag for Java-bas

Re: [Rails] How to specify which database we're using?

2010-06-04 Thread Andy Jeffries
rake db:seed RAILS_ENV=test -- Andy Jeffries http://andyjeffries.co.uk/ #rubyonrails #mysql #jquery Registered address: 64 Sish Lane, Stevenage, Herts, SG1 3LS Company number: 5452840 On 4 June 2010 15:31, Ramos wrote: > I am seeding my environment for testing, but I am doing it upon

  1   2   3   >