[NWRUG] Re: Handy irb stuff?

2008-09-11 Thread Francis Fish
yforge.org/ > > Great! Thanks > > Ashley > > > -- > http://www.patchspace.co.uk/ > http://aviewfromafar.net/ > > > > > -- Thanks and regards, Francis Fish --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

[NWRUG] Re: Handy irb stuff?

2008-09-12 Thread Francis Fish
ng to do any magic number hacking. Lookup codes are also cached after their first access (on a production database). I need a few hours to write it so it installs and so on. Will try to find time this weekend. Like I said, I need a couple of hours to do this. We've been using this code fore

[NWRUG] As promised (well, to Ashley) the lookup code extension

2008-09-13 Thread Francis Fish
e a shout, or I can add you as a collaborator. -- Thanks and regards, Francis Fish --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "NWRUG" group. To post to this group, send email to nwrug-members@google

[NWRUG] Re: As promised (well, to Ashley) the lookup code extension

2008-09-13 Thread Francis Fish
Neither can I. I did create the repo first and then make it upstream afterwards. I will delete it and recreate it afresh, sigh. Gimme 5. On Sat, Sep 13, 2008 at 5:11 PM, Ashley Moran <[EMAIL PROTECTED] > wrote: > > > On 13 Sep 2008, at 16:48, Francis Fish wrote: > > > The

[NWRUG] Re: As promised (well, to Ashley) the lookup code extension

2008-09-13 Thread Francis Fish
Clone working for me now ... was working for me as owner, sounds like some daft permissions thing. On Sat, Sep 13, 2008 at 5:25 PM, Francis Fish <[EMAIL PROTECTED]>wrote: > Neither can I. I did create the repo first and then make it upstream > afterwards. I will delete it and recrea

[NWRUG] Re: Handy irb stuff?

2008-09-25 Thread Francis Fish
Hi Guys Just discovered this too http://snippets.dzone.com/posts/show/2176 Haven't had a chance to look at it properly yet. -- Thanks and regards, Francis Fish --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

[NWRUG] Re: Export very large select statements to file

2008-10-02 Thread Francis Fish
27;m using at the moment, works for datasets > in the tens of thousands, but not in the millions. The error message I > get is that activerecord timed out. > > http://gist.github.com/14333 > > Any suggestions would be great. > > Thanks > > Mike > > > -- Th

[NWRUG] Re: Rails training - what would you want?

2008-10-07 Thread Francis Fish
; C > -- > Caius Durling > [EMAIL PROTECTED] > +44 (0) 7960 268 100 > http://caius.name/ > > > > -- Thanks and regards, Francis Fish --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "NWRUG&qu

[NWRUG] Re: can't install mongrel (and many other gems) on Cygwin

2008-10-07 Thread Francis Fish
led in > /usr/lib/ruby/gems/1.8/gems/fastthread-1.0.1 for inspection. > Results logged to > /usr/lib/ruby/gems/1.8/gems/fastthread-1.0.1/ext/fastthread/gem_make.out > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< >

[NWRUG] Re: can't install mongrel (and many other gems) on Cygwin

2008-10-07 Thread Francis Fish
n Tue, Oct 7, 2008 at 8:43 PM, Francis Fish <[EMAIL PROTECTED]> wrote: > When I developed on Windows I tend to use the windows stuff and the windows > gems, you don't need cygwin to run a development environment. > > I used to run a kind of hybrid where I would run the cons

[NWRUG] Re: Rails training - what would you want?

2008-10-08 Thread Francis Fish
On Wed, Oct 8, 2008 at 6:43 AM, Peter Morris <[EMAIL PROTECTED]>wrote: > > database level constraints are BAD. > > Don't say something like that when I'm trying to drink my coffee. I half agree with you, because rspec'ing up things for child entities can be a total pain. On the other hand, identi

[NWRUG] Re: Rails training - what would you want?

2008-10-08 Thread Francis Fish
x27;t get this until I went to Rails Con in Berlin last year and attended a full day of the testing charity workshop. Then I understood why and how. I think it's a separate course that must be attended after a couple of weeks of being a Railista (shoot me now) and falling off that comfortable

[NWRUG] Re: Rails training - what would you want? - creative commons

2008-10-08 Thread Francis Fish
Thanks John. I've been quite ill recently and still not good at stringing sentences together. Sorry if I offended, none meant. F On Wed, Oct 8, 2008 at 1:23 PM, John Leach <[EMAIL PROTECTED]> wrote: > > On Wed, 2008-10-08 at 12:55 +0100, Francis Fish wrote: > > >

[NWRUG] Re: Rails training - what would you want? - creative commons

2008-10-08 Thread Francis Fish
d up being a great promotional tool for your > training courses in the end. > > John. > -- > http://johnleach.co.uk > http://www.brightbox.co.uk - UK Ruby on Rails hosting > > > > > -- Thanks and regards, Francis Fish --~--~-~--~~~---~--~

[NWRUG] Re: Rails training - what would you want? - creative commons

2008-10-08 Thread Francis Fish
On Wed, Oct 8, 2008 at 12:27 PM, John Leach <[EMAIL PROTECTED]> wrote: > > On Wed, 2008-10-08 at 11:33 +0100, Francis Fish wrote: > > > Personally I work for a living and prefer to be paid ... are you rich > > or something? > > Yawn. I'll have my aides an

[NWRUG] Re: Rails training - what would you want?

2008-10-09 Thread Francis Fish
On Thu, Oct 9, 2008 at 8:20 AM, Peter Morris <[EMAIL PROTECTED]>wrote: > > On 8 Oct 2008, at 09:22, Francis Fish wrote: > > On Wed, Oct 8, 2008 at 6:43 AM, Peter Morris <[EMAIL PROTECTED]>wrote: > >> >> database level constraints are BAD. >> >&g

[NWRUG] Re: Rails training - what would you want?

2008-10-10 Thread Francis Fish
mplexities.com > > Scotland on Rails 26-28 March 2009 > http://scotlandonrails.com > > > > > +1 - said much better and more coherently than I could have done. -- Thanks and regards, Francis Fish --~--~-~--~~~---~--~~ You received this message

[NWRUG] Re: How to tell what a class has been extended by

2008-10-22 Thread Francis Fish
lass << self > include MyModule > end > end > > it won't show up in a call to MyClass.included_modules(). > > Does anyone know a simple way to see if a class has been extended by a > given module? > (Other than testing the class for the methods in the modu

[NWRUG] Re: How to tell what a class has been extended by

2008-10-22 Thread Francis Fish
D'oh MyClass.parent (sigh) On Wed, Oct 22, 2008 at 11:22 AM, Francis Fish <[EMAIL PROTECTED]>wrote: > What does MyClass.class.included_modules say? I think you're at the wrong > level. > > > On Wed, Oct 22, 2008 at 11:09 AM, doug livesey <[EMAIL PROTECTED]>

[NWRUG] Re: NWRUG Quiz? (Exercise 1: Fibonacci numbers)

2008-10-22 Thread Francis Fish
On Wed, Oct 22, 2008 at 2:29 PM, Paul Robinson <[EMAIL PROTECTED]> wrote: > > I've been teaching Ruby and Rails to some young 'uns who've been doing > The Fibonacci sequence is a sequence beginning with 1, and producing > the next number in the series by adding the previous two numbers. Here > is

[NWRUG] Re: Handy irb stuff?

2008-11-06 Thread Francis Fish
Sorry to revive this old thread but I just came up with this, to tell you what directory your irb or console session is running in. Already saved my bacon a couple of times on projects that post through to each other. http://www.pastie.org/308981 -- Thanks and regards, Francis Fish

[NWRUG] Rails RJS render throwing mysterious render error in Princely plugin (fixed)

2008-11-13 Thread Francis Fish
if you keep seeing this NoMethodError (undefined method `[]' for :update:Symbol): /vendor/plugins/princely/lib/pdf_helper.rb:11:in `render' when your controller is doing this: render :update do ... end It's because of a bug in the Princely plugin when it wraps the standard render method.

[NWRUG] to_xml or not to_xml

2008-12-04 Thread Francis Fish
Just been burned by this, as a Friday puzzle tomorrow, see if you can work out what's wrong: alias old_to_xml to_xml def to_xml(options = {}) (options[:except] ||= []) << :company_id << :client_id << :id (options[:include] ||= []) << :address (options[:methods] ||= []) << :company

[NWRUG] Re: Silence JRuby SSL warnings

2008-12-07 Thread Francis Fish
conn.verify_mode = OpenSSL::SSL::VERIFY_NONE Or have I misunderstood you? F On Fri, Dec 5, 2008 at 4:20 PM, Ashley Moran <[EMAIL PROTECTED]>wrote: > > Hi > > Anyone know how to prevent the following output from JRuby when > loading the jruby-openssl gem? > > /opt/local/share/java/jruby/

[NWRUG] Re: Rails/BDD training

2008-12-07 Thread Francis Fish
; > > Anyone up for something along those lines? > > This is how I work as well. Feel free to contact me too if you wish. > > Ashley > > -- > http://www.patchspace.co.uk/ > http://aviewfromafar.net/ > > > > > > > -- Thanks and regards, Francis

[NWRUG] Re: to_xml or not to_xml

2008-12-08 Thread Francis Fish
Hint Stick something like this at the many end of a has_many and then run a to_xml, :include the many, and then try and parse it at the other end of an ActiveResource. On Thu, Dec 4, 2008 at 3:34 PM, Francis Fish <[EMAIL PROTECTED]> wrote: > Just been burned by this, as a Frid

[NWRUG] Re: Silence JRuby SSL warnings

2008-12-09 Thread Francis Fish
code base? Or, maybe, turn off warnings (probably not a good idea). F On Mon, Dec 8, 2008 at 7:25 PM, Ashley Moran <[EMAIL PROTECTED]>wrote: > > On 7 Dec 2008, at 17:19, Francis Fish wrote: > > conn.verify_mode = OpenSSL::SSL::VERIFY_NONE > > Ah, that's not the

[NWRUG] Re: Parsing Word Files?

2008-12-18 Thread Francis Fish
gt; > I looked into win32ole but I assume this is for windows only. > > So, anyone have any other suggestions? > > - Ji > > > -- Thanks and regards, Francis Fish --~--~-~--~~~---~--~~ You received this message because you are subscribed t

[NWRUG] Re: Parsing Word Files?

2008-12-18 Thread Francis Fish
Forgot - there is a free DOS version of word that runs in console mode in Wine too. It's somewhere in the Ubuntu Kung Fu book. On Thu, Dec 18, 2008 at 9:24 AM, Francis Fish wrote: > Hi Jim > > Found this response to your question on Stack Overflow! > > > http://stackoverfl

[NWRUG] Re: Working with a legacy HTML + SSI Site

2009-01-07 Thread Francis Fish
Do some templating of your own ... sigh ... not enough coffee yet. On Wed, Jan 7, 2009 at 10:08 AM, Francis Fish wrote: > I'd need to see it, to be honest. It may be that there's a ton of > repetition in the app, in which case templates will come to the rescue. But > y

[NWRUG] Re: Working with a legacy HTML + SSI Site

2009-01-07 Thread Francis Fish
t; pages (assuming that this is even possible in mod_rails with our hosting > provider).. > > Anyone had a similar dilemma? > > Matt Roberts > > > > -- Thanks and regards, Francis Fish --~--~-~--~~~---~--~~ You received this message b

[NWRUG] Re: Working with a legacy HTML + SSI Site

2009-01-07 Thread Francis Fish
small, its for a > cash strapped charity and its an evening/weekend project, so I can't afford > for it to take that long. I just hope I can somehow hack the server to get > it to run SSI on top of rails! > > > Matt Roberts > > > > -- Thanks and regards, F

[NWRUG] Re: Twitter / nwrug

2009-01-08 Thread Francis Fish
atchspace.co.uk> wrote: > >> >> Just noticed this is very quiet. Does nobobody use it any more? >> >> http://twitter.com/nwrug >> >> Ashley >> >> >> -- >> http://www.patchspace.co.uk/ >> http://av

[NWRUG] Re: Twitter / nwrug

2009-01-08 Thread Francis Fish
Office: Warwick House, PO Box 87, Farnborough Aerospace Centre, > Farnborough, Hants, GU14 6YU, UK > Registered in England & Wales No: 3456325 > > > -- > *From:* nwrug-members@googlegroups.com [mailto: > nwrug-memb...@googlegroups.com] *On Behalf

[NWRUG] Re: Working with a legacy HTML + SSI Site

2009-01-09 Thread Francis Fish
Tools for the job - sounds like you need a CMS. There's tons of PHP based ones that you don't have to get under the hood of once you get them running, then the site can be maintained by the owners. I did some community stuff for my local resident's association and just ran with the free PHP based C

[NWRUG] Re: Working with a legacy HTML + SSI Site

2009-01-09 Thread Francis Fish
Residents' association, sorry. There are more than one of us. On Fri, Jan 9, 2009 at 9:37 AM, Francis Fish wrote: > Tools for the job - sounds like you need a CMS. There's tons of PHP based > ones that you don't have to get under the hood of once you get them running, &

[NWRUG] Re: Scotland on Rails

2009-01-09 Thread Francis Fish
> Ashley > > > > -- > http://www.patchspace.co.uk/ > http://aviewfromafar.net/ > > > > > -- Thanks and regards, Francis Fish --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &q

[NWRUG] Has anyone else had fun with text areas and pre tags in RHTML??

2009-01-16 Thread Francis Fish
. -- Thanks and regards, Francis Fish --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "NWRUG" group. To post to this group, send email to nwrug-members@googlegroups.com To unsubscribe from this group, sen

[NWRUG] Re: Has anyone else had fun with text areas and pre tags in RHTML??

2009-01-16 Thread Francis Fish
there is a section about > text area indentation > > Basically, instead of using the = tag, use a ~ and it will format > correctly (apparently) > > On 16 Jan 2009, at 17:03, Francis Fish wrote: > > > Hi guys, > > > > It was indenting the contents of the tag, so

[NWRUG] Re: Using symbolic links to model files in Rails (to share selected models)

2009-01-20 Thread Francis Fish
files work before > (almost), but apparently neither Rails nor Textmate like just the files > doing this. > > What does ls -l say? What you're doing is bog standard *nix and handled at kernel level, Rails/Textmate shouldn't care. -- Thanks and regards, Francis Fish --~--~-

[NWRUG] Re: Courses

2009-01-22 Thread Francis Fish
On Wed, Jan 21, 2009 at 9:48 PM, Paul Wilson wrote: > > This year we've arranged a whole day's course taught by Chad Fowler > and Marcel Molina. Chad and Marcel are both experienced trainers. > Chad teaches both the Ruby[1] and Rails[2] Pragmatic Studios, and > Marcel is a Rails Core Alumnus[3].

[NWRUG] Re: RSpec Advice

2009-01-22 Thread Francis Fish
Erm ... if you *really* do want to do this you've got should_receive, that you can also combine with mocks with and_return to avoid hitting the database. it "should set the @tag_list instance variable" do @thing.should_receive(:tag_list=) @thing.whatever_method_makes_this_happen

[NWRUG] Re: RSpec Advice

2009-01-23 Thread Francis Fish
On Thu, Jan 22, 2009 at 4:45 PM, Francis Fish wrote: > Erm ... if you *really* do want to do this you've got should_receive, that > you can also combine with mocks with and_return to avoid hitting the > database. > > > it "should set the @ta

[NWRUG] Re: Regular Expression Help

2009-01-27 Thread Francis Fish
open same tag \{\{[^}]*end[^}]*\}\} # end <\/\1>)? # non-greedy close tag and end /xm # m means multiline no need for those ugly \r \n thangs This finds two as expected, but doesn't give the string you wanted back. Lost the will to live now...

[NWRUG] Re: Regular Expression Help

2009-01-27 Thread Francis Fish
On Tue, Jan 27, 2009 at 8:17 PM, Francis Fish wrote: > On Tue, Jan 27, 2009 at 5:04 PM, Adam Holt wrote: > >> Hi guys, >> >> I'm having some trouble figuring out how to do some regular expression >> foo and thought maybe someone on here could help, >&

[NWRUG] Re: Regular Expression Help

2009-01-28 Thread Francis Fish
considerably easier, honest :) > > > - cj. > > Slaps self, and agrees with Caius. There's a standard XSD library that lets you do XSL queries and the wonderful Hpricot, plus rails has an extension that lets you turn well-fo

[NWRUG] Re: Fwd: Quick question regarding auto_increment and migrations

2009-03-06 Thread Francis Fish
; from an external perspective, so I would like in my migration rake task (as >> distinct from an ActiveRecord migration ) which I've found on t'interweb to >> be able to 'create' Issues with specific ids. If I was doing this in raw >> sql then I would probably end up altering columns, ca

[NWRUG] Re: Including rails content in SSI's

2009-03-06 Thread Francis Fish
Hi Matt, Are you serving both apps from the same domain? Have you tried putting the full path to the server into your SSI's? I've never played with this but I can't see how you can get to the Rails content from inside the SSI because it will be looking for a file? Is that how it works? So what ha

[NWRUG] Re: Fwd: Quick question regarding auto_increment and migrations

2009-03-07 Thread Francis Fish
6, 2009 at 8:55 PM, Francis Fish wrote: > >> Probably too late now but I've noticed that restoring a database from a >> mysqldump doesn't have any problems with auto increment. I *think* that if >> you provide an ID it will use it. Failing that see what params mysqldump

[NWRUG] BDD - cucumber driving me insane

2009-04-08 Thread Francis Fish
Hi all I know how to mock security and environmental things with rspec so I don't get redirected, but cucumber's got me foxed. The scenario: We have a domain, e.g. wibble.thingy.com. This means that there's a database entity associated with wibble that we go and get whenever someone hits the we

[NWRUG] Re: BDD - cucumber driving me insane

2009-04-08 Thread Francis Fish
On Apr 8, 3:21 pm, Ashley Moran wrote: > My first recommendation is: don't mock in Cucumber features!  (Unless   > they are deliberately lower-level features.)  You want something that   > runs the *real* app under *real* conditions, or you can't say for sure   > that your features prove your app

[NWRUG] Re: BDD - cucumber driving me insane

2009-04-08 Thread Francis Fish
Hi Ashley You've really confused me now ... On Apr 8, 4:55 pm, Ashley Moran wrote: > On 8 Apr 2009, at 16:43, Francis Fish wrote: > > > I can do  this, but what's the quick way of telling it to use this as > > a domain name? I had started to hack the app so

[NWRUG] Quick gist that might help if you're using seed-fu

2009-04-30 Thread Francis Fish
Hi guys, I wanted to easily take existing stuff and turn it into seed commands: http://gist.github.com/103834 Thanks and regards, Francis --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "NWRUG" group. To post to t

[NWRUG] Re: Interesting new rails movement Rails Bridge

2009-05-05 Thread Francis Fish
I don't like being negative, but I really can't see the point. Particularly now that there's stack overflow - the Rails guys there are brilliant and very kind to newbies, plus you can get help for everything else including shell programming and Linux/Mac config. Plus the tons of useful stuff from

[NWRUG] Re: multiple apps on a phusion passenger server

2009-05-06 Thread Francis Fish
Hi guys This might or might not get you - but when I upgraded to the latest passenger I needed to set PassengerDefaultUser or none of the apps would start. Thanks and regards, Francis On Wed, May 6, 2009 at 10:29 AM, doug livesey wrote: > Cheers for both responses -- I shall be cracking on t

[NWRUG] Re: multiple apps on a phusion passenger server

2009-05-06 Thread Francis Fish
On Wed, May 6, 2009 at 1:24 PM, Will Jessop wrote: > > On 6 May 2009, at 13:17, Francis Fish wrote: > > This might or might not get you - but when I upgraded to the latest > > passenger I needed to set PassengerDefaultUser or none of the apps > > would start. > >

[NWRUG] Re: multiple apps on a phusion passenger server

2009-05-07 Thread Francis Fish
http://railscasts.com/episodes/122-passenger-in-development Thanks and regards, Francis On Thu, May 7, 2009 at 4:31 PM, doug livesey wrote: > Brilliant, cheers -- I'll be putting this all to work tomorrow in > th'office. > Thanks again, >Doug. > > 2009/5/7 Lee Hambley > > The ghost gem i

[NWRUG] Re: odd behaviour with integer fields

2009-05-11 Thread Francis Fish
What's the base type in your model? You *can't* put a float in an integer. It's being nice to you and truncating (whether it's AR or your database engine I've no idea). Thanks and regards, Francis On Mon, May 11, 2009 at 11:00 AM, doug livesey wrote: > Hi -- has anyone else noticed (or am I

[NWRUG] Re: odd behaviour with integer fields

2009-05-11 Thread Francis Fish
Ah something must be calling to_i then to_i just truncates .. Thanks and regards, Francis On Mon, May 11, 2009 at 11:59 AM, doug livesey wrote: > I should add -- I'm not trying to persist the value to the db -- just > setting it in the model instance. > > 2009/5/11 doug livesey > >

[NWRUG] Re: Altering the id that my rails models are identified by -- to_param alone not sufficient

2009-05-18 Thread Francis Fish
Interesting this - url_for does most of this (and also the passing an array to do the parent/child dependencies) but not edit (so I tended to append '/edit'). That'll teach me not to read the documentation between releases. Form_for also supports passing arrays too, if you didn't know. F On Sun,

[NWRUG] belongs_to ate my method missing?

2009-05-19 Thread Francis Fish
Hi guys Running 2.2.2. Background: We've created some method missing stuff in one of our active record models that allows you to do things like claim.offer_progress_received This will find or create a progress called offer and set its received date. Very happy with this because it makes what t

[NWRUG] Re: belongs_to ate my method missing?

2009-05-19 Thread Francis Fish
On Tue, May 19, 2009 at 10:42 AM, Jamie van Dyke wrote: > > On 19 May 2009, at 10:39, Francis Fish wrote: > > > > > This will find or create a progress called offer and set its > > received date. Very happy with this because it makes what the code > > is doing e

[NWRUG] Re: belongs_to ate my method missing?

2009-05-19 Thread Francis Fish
44) (0)797 644-3043 > > "Ideas are like rabbits. You get a couple and learn how to handle > them, and pretty soon you have a dozen." > John Steinbeck > > > > On Tue, May 19, 2009 at 10:39 AM, Francis Fish > wrote: > > Hi guys > > > > Running 2.2.2. &

[NWRUG] Available for work

2009-06-11 Thread Francis Fish
Hi guys If anyone wants the services of someone with 2 years Rails (including all the goodness that is RSpec and I have a small amount of experience with Cucumber), 20 years database design and Unix/Linux shell scripting etc. etc. Ex-Oracle and all that lovely consultancy and database design exper

[NWRUG] Is it just me, or is Rails 2.3.2 not reloading layouts and CSS?

2009-06-25 Thread Francis Fish
Hi guys, This is driving me nuts and restarting passenger makes no difference. If I rename the layout and change the name in the controller then it picks it up. CSS seems to suffer from the same problem. I'm convinced that my 2.2.2 project *just works*. Is there something in 2.3 I've missed? T

[NWRUG] Re: Is it just me, or is Rails 2.3.2 not reloading layouts and CSS?

2009-06-26 Thread Francis Fish
weren't showing in Rails. > > -D > > On 25/6/09 12:48, Francis Fish wrote: > > Hi guys, > > > > This is driving me nuts and restarting passenger makes no difference. > > > > If I rename the layout and change the name in the controller then it >

[NWRUG] Re: Is it just me, or is Rails 2.3.2 not reloading layouts and CSS?

2009-06-29 Thread Francis Fish
On Fri, Jun 26, 2009 at 4:41 PM, Francis Fish wrote: > On Thu, Jun 25, 2009 at 3:04 PM, Dave Spurr wrote: > >> >> Are you using a virtual machine for your dev env? If so make sure the >> clock on your VM is set to the right time. I had a situation once where >> I w

[NWRUG] Re: Is it just me, or is Rails 2.3.2 not reloading layouts and CSS?

2009-06-29 Thread Francis Fish
On Mon, Jun 29, 2009 at 3:21 PM, Caius Durling wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 29 Jun 2009, at 15:17, Francis Fish wrote: > > > Finally worked this out. I use emacs and it keeps old versions of > > the files with handy ~1~, ~2~ ext

[NWRUG] SMTP, google mail and Rails 2.3

2009-07-07 Thread Francis Fish
use google mail for my "corporate" email Just discovered that you need to add this to your mail initialiser (wasn't prob with 2.2.2.): ActionMailer::Base.smtp_settings = { :enable_starttls_auto => true, # ... } I was getting Net::SMTPAuthenticationError: 530 5.7.0 Must issue a STARTTLS com

[NWRUG] Hoptoad

2009-07-16 Thread Francis Fish
Hi guys Have to give credit here - Colin put me onto this. hoptoad.com It's a nice tool with a plugin that captures your rails errors so it doesn't fill up your inbox with the same error over and over again, just sends you it once. Thanks and regards, Francis Follow me on twitter https://twit

[NWRUG] Not gonna make it, again

2009-07-16 Thread Francis Fish
Overloaded with stuff ... too many meetings in the same week, geekup cost me an evening and need to catch up. :( Thanks and regards, Francis Follow me on twitter https://twitter.com/fjfish Blog at http://www.francisfish.com (you can also buy my books from there!) Skype: fjfish --~--~-~-

[NWRUG] And today's lesson is ...

2009-07-22 Thread Francis Fish
I'm trying to use both openid *and* oauth with authlogic. Looks like I can't. The plugins both override the active record save method and call the block you associate with it in the controller (this is done so that it can go to the external website and come back without a double render - very clev

[NWRUG] Re: And today's lesson is ...

2009-07-22 Thread Francis Fish
On Wed, Jul 22, 2009 at 5:38 PM, Ashley Moran wrote: > > > On 22 Jul 2009, at 17:20, Francis Fish wrote: > > > Usable fixes and suggestions welcome. I've tried @@variables in the > > controller but didn't work and don't like them anyway. > > I don&#

[NWRUG] Re: still stumped on a SOAP call

2009-07-28 Thread Francis Fish
(arrays, whatever, etc.). > & cheers again for your help, > >    Doug. > > > > > > > -- Thanks and regards, Francis Fish --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "NWRU

[NWRUG] [OT] What's SOAP for anyway? was still stumped on a SOAP call

2009-07-29 Thread Francis Fish
sh.com (you can also buy my books from there!) Skype: fjfish On Tue, Jul 28, 2009 at 1:49 PM, Ciaran wrote: > > > On Tue, Jul 28, 2009 at 1:23 PM, Francis Fish wrote: > >> >> Last time I looked at summat like this twas a login object you had to >> instatiate & pop

[NWRUG] Why the luck stiff disappeared?

2009-08-20 Thread Francis Fish
Noticed some tweets saying his stuff has disappeared from the Net. Anyone know anything:? Thanks and regards, Francis Follow me on twitter https://twitter.com/fjfish Blog at http://www.francisfish.com (you can also buy my books from there!) Skype: fjfish --~--~-~--~~~--

[NWRUG] Re: Talks and Sponsorship

2009-08-25 Thread Francis Fish
On Tue, Aug 25, 2009 at 3:02 PM, Caius Durling wrote: > > On 25 Aug 2009, at 13:53, Ashley Moran wrote: > > > I'm still up for doing a talk on the use(s) of mock objects in RSpec, > > if anyone's interested. > > > I'd be interested in hearing that, if only to see if I'm using as > often/rarely as

[NWRUG] Re: How to create a user session with authlogic and cucumber?

2009-08-26 Thread Francis Fish
On Wed, Aug 26, 2009 at 2:01 PM, Mike Barton wrote: > > I'm trying to test authlogic-openid authentication using cucumber. I > was wondering if any has any experience of doing this already? I'm > trying to create a user session so that I can test actions for an > authenticated user. However I can'

[NWRUG] Is it just me or is Ruby Forge down?

2009-09-28 Thread Francis Fish
Cheers guys Thanks and regards, Francis Follow me on twitter https://twitter.com/fjfish Blog at http://www.francisfish.com (you can also buy my books from there!) Skype: fjfish --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

[NWRUG] Re: Slides from "Uses & Abuses of Mocks & Stubs" Oct 15th

2009-10-19 Thread Francis Fish
On Sat, Oct 17, 2009 at 8:47 PM, Ashley Moran wrote: > > Hi all > > Thanks to everyone that attended, to Will (as always) for organising > it, and to Jamie of Boxedup.com for arranging sponsorship so that > people actually turned up :) > > I've finally corrected the broken slide, and a bit of OCD

[NWRUG] Rails checklist

2009-10-25 Thread Francis Fish
Hi guys Colin tweeted this but I thought it might be better here because it will be easier to find: http://www.matthewpaulmoore.com/ruby-on-rails-code-quality-checklist Thanks and regards, Francis Follow me on twitter https://twitter.com/fjfish Blog at http://www.francisfish.com (you can also

[NWRUG] Re: Rails - Scoping through multiple models

2009-11-02 Thread Francis Fish
On Mon, Nov 2, 2009 at 1:54 PM, Paul Robinson wrote: > > On 30 Oct 2009, at 14:11, Andrew Threlfall wrote: > > > The usual method of daisy-chaining them in the controller like: > > current_user.account.books.recipies.ingredients.etc...find(:id) > > will have a big overhead if we only want to chec

[NWRUG] Re: DailyJS - a new javascript blog

2009-11-16 Thread Francis Fish
Sure there was something about this on the Rails Envy podcast recently too? Thanks and regards, Francis Follow me on twitter https://twitter.com/fjfish Blog at http://www.francisfish.com (you can also buy my books from there!) Skype: fjfish My other sig is much funnier and world changing but I

[NWRUG] Cucumber tutorial or better resources

2009-12-30 Thread Francis Fish
Hi all I'm using cucumber to help me write the specifications for a project, rather than write a formal use case / user story document. I've got a copy of the Rspec book[1] and it's only OK, doesn't seem to go deep enough for me. Is there any resource online or talk that people have given that ac

Re: [NWRUG] Cucumber tutorial or better resources

2009-12-30 Thread Francis Fish
ld_2 | > | field_3 | > > HTH, >Doug. > > 2009/12/30 Francis Fish > >> Hi all >> >> I'm using cucumber to help me write the specifications for a project, >> rather than write a formal use case / user story document. >> >> I've got a

Re: [NWRUG] Cucumber tutorial or better resources

2009-12-30 Thread Francis Fish
ing that technique in my own specs, cheers! > Doug. > > 2009/12/30 Francis Fish > > Thanks Doug >> >> That did the trick, and I can have different lists of fields for create >> and update if I want. I will see if there's a cast or two I can look at as &g

Re: [NWRUG] Re: Cucumber tutorial or better resources

2010-01-01 Thread Francis Fish
One quick tip: I kept getting "Couldn't find 'cucumber' generator" With the latest version of cuke and rails. Like rspec, now in its own gem sudo gem install cucumber-rails Thanks and regards, Francis Follow me on twitter https://twitter.com/fjfish Blog at http://www.francisfish.com (you ca

Re: [NWRUG] Cucumber tutorial or better resources

2010-01-05 Thread Francis Fish
On Tue, Jan 5, 2010 at 11:37 AM, Ashley Moran wrote: > > On Dec 30, 2009, at 3:52 pm, Francis Fish wrote: > > > Given I am logged in as an admin user > > And I am in the blah area > > When I select edit blah > > Then I will see the edit blah screen > > &g

Re: [NWRUG] Cucumber tutorial or better resources

2010-01-18 Thread Francis Fish
On Mon, Jan 18, 2010 at 3:38 PM, Ashley Moran wrote: > > On Jan 05, 2010, at 7:49 pm, Francis Fish wrote: > > > Thanks for this Ashley, I think I need to do some deeper and wider > scenarios that blank out mandatory fields like you suggest. Needs some > thought. > >

Re: [NWRUG] Are there any Cucumber/Capybara/Selenium experts on the list who can advise me?

2010-02-04 Thread Francis Fish
On Thu, Feb 4, 2010 at 11:39 AM, doug livesey wrote: > Hi -- I have this expectation in a cucumber steps file (using capybara and > the selenium webdriver driver) that should be changing a value (from > "010210" to "020210", fwiw): http://pastie.org/809167 > Even though I explicitly set the value

Re: [NWRUG] Ruby CMS

2010-02-08 Thread Francis Fish
I think it's quite tricky to find a Ruby CMS because there are a *lot* of pretty good PHP-based ones and you do find yourself wondering if you are reinventing the wheel. Once built it doesn't matter what the base platform is - as long as it's extensible and not too difficult to do plugins for. As

[NWRUG] What does rerun.txt do with cucumber

2010-02-19 Thread Francis Fish
Hi guys I've discovered that if I run script/cucumber it creates a file called rerun.txt in my rails root. Annoyingly if this file is there it doesn't seem to do the tests properly on subsequent runs. Is there something I've missed? (Will pick this up on 28th - off on hols - just thought I'd as

[NWRUG] Some helpful cucumber things

2010-03-04 Thread Francis Fish
Just posted this FWIW: http://www.francisfish.com/debugging_cucumber_scripts_cucumber_and_devise_authenticati.htm Thanks and regards, Francis Follow me on twitter https://twitter.com/fjfish Blog at http://www.francisfish.com (you can also buy my books from there!) Skype: fjfish My other sig is

Re: [NWRUG] Awesome Rails Freelancer needed..

2010-04-19 Thread Francis Fish
Peter - it's April ... Original mail was in Feb and I think we all ignored it ... Thanks and regards, Francis Follow me on twitter https://twitter.com/fjfish Blog at http://www.francisfish.com (you can also buy my books from there!) Skype: fjfish Comfort the frightened, coach the clueless and

Re: [NWRUG] Awesome Rails Freelancer needed..

2010-04-22 Thread Francis Fish
ess and teach the uninformed. Seth Godin On Thu, Apr 22, 2010 at 8:29 AM, Tekin Suleyman wrote: > > On 19 Apr 2010, at 19:37, Francis Fish wrote: > > > Original mail was in Feb and I think we all ignored it ... > >> > I didn't and since done some nice work with Ro

Re: [NWRUG] Folksy job

2010-04-23 Thread Francis Fish
Salary would be OK if there was equity ... not for me (expensive OF with lots of commitments), but in general maybe ... Thanks and regards, Francis Follow me on twitter https://twitter.com/fjfish Blog at http://www.francisfish.com (you can also buy my books from there!) Skype: fjfish Comfort th

Re: [NWRUG] Selenium behaving oddly

2010-05-21 Thread Francis Fish
Which browser? Maybe you need to upgrade browser's selenium plugin, or browser's been updated and you've managed to find incompatibility? Not seen the error m'self Thanks and regards, Francis Follow me on twitter https://twitter.com/fjfish Blog at http://www.francisfish.com (you can also bu

Re: [NWRUG] RoR discussion forums / social networking

2010-05-28 Thread Francis Fish
I remember there was a plugin, which I think was called community engine, but the site looks like it's no longer with us. Thanks and regards, Francis Follow me on twitter https://twitter.com/fjfish Blog at http://www.francisfish.com (you can also buy my books from there!) CV http://www.pharmarke

Re: [NWRUG] Rails CMS plugins

2010-06-19 Thread Francis Fish
Hi Will We're using Browser CMS, which is a gem that gives you CMS like features (templates, security, portlets). It's a full-blown solution and it does work. We had to do some messing about with routes and things to get it to work. It's ok, but there are some gotchas like portlets render after th

Re: [NWRUG] Ruby on Rails- Financial applications

2010-06-20 Thread Francis Fish
What kind? B2B/B2C? Thanks and regards, Francis Follow me on twitter https://twitter.com/fjfish Blog at http://www.francisfish.com (you can also buy my books from there!) CV http://www.pharmarketeer.com/francis.html Comfort the frightened, coach the clueless and teach the uninformed. Seth Godi

  1   2   >