Re: [Rails] basic of ROR

2011-08-10 Thread Peter Bell
On Aug 10, 2011, at 10:11 AM, honey wrote: Can any one tell where do we find the basic of ROR Start here: http://guides.rubyonrails.org/ Best Wishes, Peter -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group,

[Rails] step-wise refactoring and has-one

2011-08-09 Thread Peter Bell
Hi There, Wondering if anyone has thoughts on this. Right now my User has lots of responsibilities. I want to start to move some of them from a User to a Profile (where a user has-one Profile). I don't want to do any big refactorings, so I want to take small steps so I can commit working code

Re: [Rails] step-wise refactoring and has-one

2011-08-09 Thread Peter Bell
On Aug 9, 2011, at 5:43 PM, Chris Mear wrote: On 9 Aug 2011, at 22:08, Peter Bell wrote: As an aside: if your User has_one Profile, then normally you'd just access that via User's instance method 'profile', which ActiveRecord provides. Is there a particular reason you need to use

Re: [Rails] FYI: Heroku Cedar, pg, openssl, omniauth, troubles and a solution

2011-08-03 Thread Peter Bell
FWIW, I ran into this back on (I think) rc1 and had the problem locally as well. There was a bug noted somewhere on the ruby bug tracker relating to it - sorry I don't have the url offhand. Thanks very much for the fix - good to know! Best Wishes, Peter On Aug 3, 2011, at 3:13 AM, Martin

Re: [Rails] Re: Creating a Simple Orders System

2011-07-26 Thread Peter Bell
On Jul 26, 2011, at 3:58 PM, KlausG wrote: I whonder why a product should have many orders? It belongs to orders.. Not being paying much attention to this thread, but whenever I see comments like this I'm cautious. Bear in mind that if products are mutable (can vary over time), typically you

Re: [Rails] Need Ruby on Rails Developer

2011-07-12 Thread Peter Bell
I take it that neither consistent capitalization nor the ability to spell the names of key libraries accurately is a relevant part of the job description? On Jul 11, 2011, at 1:56 PM, karthikey...@hrgiants.com wrote: Hi, We have URGENT requirement for an Ruby on Rails Developer in CA.

Re: [Rails] ROR Programmers?

2011-07-01 Thread Peter Bell
Well, given that the Romans have done *nothing* for us, I need education, sanitation, . . . oh . . . wait . . . :) On Jul 1, 2011, at 11:28 AM, Michael Pavling wrote: As long as you're not from the People's Front, give us some more details about where you are and what you need...

[Rails] Protected properties in Rails?

2011-06-27 Thread Peter Bell
A User has many teachers. I'm trying to lock down my API. I have a user.add_teacher teacher method and want to make that the *only* way to user.teachers teacher. Any way to lock down the teachers association so it is read only from outside the user class and only settable within self? I'm not

Re: [Rails] beginner

2011-06-23 Thread Peter Bell
Start here: http://guides.rubyonrails.org/ And check out the Railscasts: http://railscasts.com/ Best Wishes, Peter On Jun 23, 2011, at 9:38 AM, asifa kazi wrote: Hi, I have done a ruby on rails project as part of my college assignment and was quite fascinated by it. I would like to know

Re: [Rails] RoR TDD

2011-06-22 Thread Peter Bell
For general testing in Rails, I like the (short but good) chapter in Eloquent Ruby - gets you thinking about testing right and it isn't overwhelming. From there, Rails test prescriptions is a great intro to testing and TDD for Rails developers, and finally you're going to want to pick up a copy

Re: [Rails] Re: Problems with wrong number of arguments (2 for 1) (ArgumentError) and rails server

2011-06-19 Thread Peter Bell
On Jun 19, 2011, at 11:26 AM, Colin Law wrote: On 19 June 2011 14:08, gezope gez...@gmail.com wrote: ... Running Ruby 1.9 with Rails3 is essential and it will have conflicts with your other gems if you have version differences. Not true, ruby 1.8.7 works fine with rails 3.0.x. I am using

[Rails] errors.add_to_base

2011-06-13 Thread Peter Bell
Hmm, So it looks like erros.add_to_base is deprecated in ActiveModel: http://api.rubyonrails.org/classes/ActiveModel/Errors.html I need to add an error, but I don't want to add it to a specific property (I need you to fill out either a source_person or source_url, so I don't want to prepend the

Re: [Rails] errors.add_to_base

2011-06-13 Thread Peter Bell
Awesome - perfect. Thanks! Best Wishes, Peter On Jun 13, 2011, at 6:11 PM, Martin Wawrusch wrote: errors.add(:base,your text) perhaps? On Mon, Jun 13, 2011 at 3:08 PM, Peter Bell pe...@pbell.com wrote: Hmm, So it looks like erros.add_to_base is deprecated in ActiveModel: http

Re: [Rails] Heroku: Timeout awaiting process problem

2011-06-12 Thread Peter Bell
I've not received that timeout, but I'd suggest putting in a support ticket at heroku.com. I find that they are usually pretty good at responding - even if you're on a free plan. Best Wishes, Peter On Jun 12, 2011, at 1:34 PM, Zoloo wrote: Hi guys, I'm developing Rails app and when I run

Re: [Rails] Looking for a talented Ruby Developer for my startup

2011-06-08 Thread Peter Bell
You should probably clarify whether you're looking for local, national or international and whether you're offering market cash comp on an hourly basis (an hourly range would help to better match the right applicants), a fixed bid (again, give a ballpark budget) or whether you're looking for

Re: [Rails] Need RoR Developer

2011-06-08 Thread Peter Bell
At the risk of repeating myself :) You should probably clarify whether you're looking for local, national or international and whether you're offering market cash comp on an hourly basis (an hourly range would help to better match the right applicants) or a fixed bid (again, give a ballpark

Re: [Rails] Re: Seg fault with Ruby 1.9.2 p180 and Rails 3.1 rc1

2011-06-06 Thread Peter Bell
and tos urls to the fb app. Everything running fine so it probably had nothing to do with switching to Mongo Matt On May 31, 9:31 am, Conrad Taylor conra...@gmail.com wrote: On Tue, May 31, 2011 at 8:05 AM, Peter Bell pe...@pbell.com wrote: Just in case anyone runs into the same issue

[Rails] Seg fault with Ruby 1.9.2 p180 and Rails 3.1 rc1

2011-05-31 Thread Peter Bell
Hi All, I've got a very simple OmniAuth install. I've registered the app with facebook and the login works fine. When Facebook runs it's callback and tries to pull up localhost:3000/auth/facebook/callback, I get a page can't be displayed in my browser and in the terminal window where I'm running

[Rails] Re: Seg fault with Ruby 1.9.2 p180 and Rails 3.1 rc1

2011-05-31 Thread Peter Bell
Just in case anyone runs into the same issue, it's documented here: http://redmine.ruby-lang.org/issues/4611 For me, removing postgres solved the problem. Had planned on moving to MongoDB anyway . . . Best Wishes, Peter Begin forwarded message: From: Peter Bell pe...@pbell.com Date: May 31

Re: [Rails] Re: What is the equivalent for write_attribute for associations in Rails?

2011-05-28 Thread Peter Bell
On May 28, 2011, at 2:10 PM, egervari wrote: Most of Rails makes sense, especially if you do the simple things - the things where you find TONS of examples for online. It's the weird and somewhat uncommon things that really bite me all the time. In Java, I have traditionally found myself

Re: [Rails] Debugging Rails - Request for tips, tricks and hacks

2011-05-27 Thread Peter Bell
Hopefully someone else will come in with more input on debugging as that is required sometimes. But I don't find myself using a debugger very often. I write tests, then the simplest piece of code to make them work and I'm running the tests (even for a large app) continuously using autorun, so I

Re: [Rails] Re: SMS in rails

2011-05-26 Thread Peter Bell
These days, I'd look at Twilio for drop dead easy and quick development. There are also gems for providers like clickatel. Of course, all the advice below is excellent and provides a really good backgrounder, but if developer time is at a premium and load is uncertain, Twilio isn't the cheapest

Re: [Rails] looking for a Ruby on Rails developer for 3 months contract

2011-05-26 Thread Peter Bell
, with the IPOs coming up and even more fresh money available. And yeah, it feels like 1999 again - one hell of a year :P On Wed, May 25, 2011 at 9:17 PM, Peter Bell pe...@pbell.com wrote: Not at $28/hr. :) But it certainly is outside of Toronto. I've been to 5 conferences in the last two weeks

Re: [Rails] Session and Database

2011-05-26 Thread Peter Bell
And if it's for a multi-server web farm, you're way better off with sticky sessions on the load balancer than a shared persistent session store. And if you can't afford to ever lose any of the data you're currently saving in session even in the rare event of server fail over, you should be

[Rails] Opinions on style required

2011-05-26 Thread Peter Bell
Hi Guys, Still fairly new to Rails. Want to see if I'm doing anything un-idiomatic. Few questions of style: 1. public controller I'm using a public controller. It seems to be a good semantic choice, because it's for the landing page and the other few pages that public site visitors go to. I

Re: [Rails] looking for a Ruby on Rails developer for 3 months contract

2011-05-25 Thread Peter Bell
Let us know how it goes. If you can find good Rails devs in Toronto for $28/hr for a three month contract I may have to fly up there from NYC to set up a new office :) Sent from my iPhone On May 25, 2011, at 1:02 PM, UTbibapp info.tsp...@utoronto.ca wrote: Hello, I sincerely hope that it

Re: [Rails] looking for a Ruby on Rails developer for 3 months contract

2011-05-25 Thread Peter Bell
Not at $28/hr. :) But it certainly is outside of Toronto. I've been to 5 conferences in the last two weeks and in every one, pretty much every deck seemed to end with a we're hiring slide. And most of the positions I was hearing about were safely north of $100k/yr. At least in the major US

[Rails] Problems installing rails 3.1 rc

2011-05-23 Thread Peter Bell
Anyone running into issues with this? - I'm using rvm and have updated rvm to the latest version (1.6.13) - I created a clean gemset (using Ruby 1.9.2-head - p208) - I then tried gem install rails --pre I got: ERROR: Could not find a valid gem 'rails' (= 0) in any repository ERROR: Possible

Re: [Rails] web-based retail Point Of Sale

2011-05-05 Thread Peter Bell
On May 5, 2011, at 9:55 PM, Carina Brito wrote: Execuse me, Can you tell me what is POS? I don't know what is it. Check out the subject line of the email :) Best Wishes, Peter 2011/5/4 News Aanad news.anan...@gmail.com I have a good experience with rails. e.g. I have made up certain

Re: [Rails] Re: Performance question about ruby/rails

2011-04-28 Thread Peter Bell
On Apr 28, 2011, at 5:04 PM, egervari wrote: Ooo, nice. Yeah, that could solve it. I also was doing some other research and JRuby completely slipped my mind. Is that also a reasonable alternative too? Do you guys have any experience using rails 3 under Jruby? Is it still easy and straight-

Re: [Rails] Re: Rich text editor?

2011-04-14 Thread Peter Bell
On Apr 14, 2011, at 12:28 PM, Paul wrote: Yes, it is marked beta, but their beta stuff is pretty solid. Only downside seems to be that it says you have to write your own UI . . . Best Wishes, Peter On Thu, Apr 14, 2011 at 9:49 AM, Walter Lee Davis wa...@wdstudio.com wrote: On Apr 14,

Re: [Rails] Re: Freelance Developer using Rails

2011-04-12 Thread Peter Bell
On Apr 12, 2011, at 10:22 AM, David Kahn wrote: On Mon, Apr 11, 2011 at 10:14 PM, Peter Bell pe...@pbell.com wrote: On Apr 11, 2011, at 8:29 PM, xyz wrote: Is there enough business for one man operations out there? There is a *huge* amount of business out there. I am curious what

Re: [Rails] Re: Rich text editor?

2011-04-11 Thread Peter Bell
On Apr 11, 2011, at 1:02 PM, Philip Hallstrom wrote: elFinder is a pretty nice file browser that says it will integrate into tinymce... There is a ruby/rails server adapter for it, but it doesn't support S3... but if you decide to do it, that may be a good place to start.

Re: [Rails] Freelance Developer using Rails

2011-04-11 Thread Peter Bell
Yes Sent from my iPhone On Apr 11, 2011, at 7:25 PM, xyz alex.kat...@gmail.com wrote: Hi all, Is anyone doing freelance rails development? I need some advice before I jump in. Thanks, -- You received this message because you are subscribed to the Google Groups Ruby on Rails:

Re: [Rails] Re: Freelance Developer using Rails

2011-04-11 Thread Peter Bell
On Apr 11, 2011, at 8:29 PM, xyz wrote: Is there enough business for one man operations out there? There is a *huge* amount of business out there. I do Java, Groovy/Grails, C#, ColdFusion and Python and I'm pretty well known in the Groovy and Java communities as I speak at a bunch of

Re: [Rails] Re: Rich text editor?

2011-04-10 Thread Peter Bell
I just put TinyMCE into a project. I didn't use a gem, just dropped it into a Rails 3 project and it worked fine. Only issue is you need some kind of file browser and as I'm deploying to heroku I need one based around something like the s3 gem. If anyone has any recommendations for a starting

Re: [Rails] Re: Rails suitable for highly scalable apps?

2011-04-07 Thread Peter Bell
to use it. Rails is a great framework for building *almost* every web app :) Rails is dead, long live Rails. Best Wishes, Peter On Apr 6, 2011, at 10:32 AM, Peter Bell wrote: On Apr 6, 2011, at 10:17 AM, mengu wrote: rails has become a lot better in the years thanks to the core devs

Re: [Rails] Re: Rails suitable for highly scalable apps?

2011-04-06 Thread Peter Bell
On Apr 6, 2011, at 4:06 AM, Alexey Muranov wrote: I think i understand David's point: scalable is true or false. I'm not sure that is Davids point at all. It sounds like he has experience with building scalable applications and notices that some best practices for scalability like UUID

Re: [Rails] Re: Rails suitable for highly scalable apps?

2011-04-06 Thread Peter Bell
searching. - make sure your views are perfectly fine and does not contain ruby code more than enough. remember, the rendering takes time, as well. - cache whatever you can. good luck. On Apr 6, 4:26 pm, Peter Bell pe...@pbell.com wrote: On Apr 6, 2011, at 4:06 AM, Alexey Muranov wrote: I

Re: [Rails] Re: Rails suitable for highly scalable apps?

2011-04-05 Thread Peter Bell
Twitter had huge scaling problems. While I am a big fan of Rails and while it is wrong to suggest rails cannot scale, if you really hit twitter scale you are not going to want to use a general purpose web framework with a SQL data store. However, almost none of us hit that scale which is why I

Re: [Rails] Re: Rails suitable for highly scalable apps?

2011-04-04 Thread Peter Bell
On Apr 4, 2011, at 11:25 AM, DavidJ wrote: On Monday, April 4, 2011 11:17:34 AM UTC-4, Colin Law wrote: I am surprised that whether scaffolding works for you or not is relevant. It is certainly not appropriate for the sort of app you are describing. It isn't, but being new to Rails I'm

[Rails] Affordable developer with good software design skills?

2011-03-31 Thread Peter Bell
Hi All, Apologies if this is verging on O/T for the list, but I do see some job ads and I've been trying to contribute substantively to the list for the last couple of months. I'm in the horrible position of having too much work, but some of it isn't that profitable so I can't go to my

Re: [Rails] Communication between two apps?

2011-03-30 Thread Peter Bell
The main issues to consider are contention and scalability/performance. Can both apps be updated or just one? If both, what happens if both update the same field on the same record at the same time? If performance isn't an issue, a simple synchronous js call to a RESTful API should be fine,

Re: [Rails] How would you counter the following argument for developing in Rails

2011-03-29 Thread Peter Bell
On Mar 29, 2011, at 2:57 PM, Alpha Blue wrote: So, you have a solid idea of what you want to accomplish. You know that by using Ruby on Rails and the core engines/plugins that will help manage your project, you will save your company money, time, and have a full test suite in place to

Re: [Rails] Re: New to RoR, a quick question

2011-03-16 Thread Peter Bell
On Wed, Mar 16, 2011 at 10:04 AM, Linus Pettersson linus.petters...@gmail.com wrote: Hi! Thank you for your answers :) I really appreciate it. I have checked out some Railscasts and they are great. They may be a little too specific for me at the moment though. Start with the Rails guides.

Re: [Rails] Getting Started - Various Working Environments?

2011-03-16 Thread Peter Bell
On Wed, Mar 16, 2011 at 1:30 PM, Jason Clark jclark.jasondcl...@gmail.comwrote: All - I'm trying to set up several working environments in order of priority: 1) Testing/Learning environment on my system (Windows 7, 64-bit) Start by setting up rvm so if you need multiple versions of rails,

Re: [Rails] how to create a form using ruby on rails

2011-03-14 Thread Peter Bell
Hi Mandrekar, Start here: http://guides.rubyonrails.org/getting_started.html Then check out forms: http://guides.rubyonrails.org/form_helpers.html Have a look through the other guides. When you have problems they don't cover (and you will pretty soon!) drop us an email on the list. Welcome to

Re: [Rails] Rails server not works - yesterday worked fine

2011-03-14 Thread Peter Bell
The address is already in use. Easiest solution, just restart your PC. You could have left a process running rails without realizing it. You *could* try to find and kill the process, but a quick reboot should solve the problem. If it doesn't then you have probably installed something else

Re: [Rails] Re: RUBY ON RAILS SUPPORTS MS SQL SERVER 2000?

2011-03-11 Thread Peter Bell
NO NEED TO SHOUT. HE'S TRYING TO HELP. Best Wishes, Peter On Mar 11, 2011, at 12:34 AM, Er.SALIM MANDREKAR wrote: sir i'm using MS SQL SERVER 2000 AND NOT SERVER 2005. SECONDLY I ALREADY TRIED USING THAT GEM WHICH DOESNT MAKE ANY DIFFERENCE TO THE ERRORS I'M FACING.. IF I USE MS SQL

Re: [Rails] How to hide parts of Ruby source code

2011-03-11 Thread Peter Bell
On Mar 11, 2011, at 4:06 PM, Vincent P wrote: Hi, How can I hide parts of Ruby source code from another programmer working on the same project? Ideally, don't. It's a lousy way of working. Understand the business drivers, but it's hard enough to work with developers that you trust. That

Re: [Rails] How to hide parts of Ruby source code

2011-03-11 Thread Peter Bell
On Mar 11, 2011, at 4:13 PM, Culley Smith wrote: If you're using git and github, I believe adding files/directories to your .gitignore file should do what you want. It would hide a part of a file, however, but the entire file itself. But then the tests and the app may not work. You'd have

Re: [Rails] Re: How to hide parts of Ruby source code

2011-03-11 Thread Peter Bell
On Mar 11, 2011, at 5:25 PM, Walter Lee Davis wrote: We tried this whole offshore thing in the late 90s. and found that the money saved on labor was more than eaten back up by longer production schedules and additional layers of communication. Not worth it. Been my experience too.

Re: [Rails] Query Regarding Rspec

2011-03-08 Thread Peter Bell
Both the rspec book and rails testing prescriptions have chapters on cucumber. I'd thoroughly recommend them. Best Wishes, Peter On Mar 8, 2011, at 6:29 AM, nishant nigam wrote: Colin Thanks ... That link that you guys gave me is really awesome helped me a lot in rspec Colin if you have any

Re: [Rails] purpose of Factory girl?

2011-03-08 Thread Peter Bell
Replace fixtures for creating data for your tests. As app gets bigger, fixtures become brittle. With Factory Girl (or Machinist) you can create just the test data you need for a given test. Best Wishes, Peter On Mar 8, 2011, at 10:13 AM, Gaba Luschi wrote: What's the purpose of using Factory

Re: [Rails] Re: purpose of Factory girl?

2011-03-08 Thread Peter Bell
Come on man - that's what google is for. Check out some of the 101 stuff so we can help with anything you can't get in 2 mind on google. Best Wishes, Peter On Mar 8, 2011, at 10:47 AM, Gaba Luschi wrote: Thanks - what exactly are fixtures? And do Factory Girl and Machinist serve the same

Re: [Rails] Re: Need Some assistance in Rspec and Cucumber?

2011-03-07 Thread Peter Bell
On Mar 7, 2011, at 5:49 PM, Philip Hallstrom wrote: On Mar 7, 12:43 am, nishant nishantnig...@gmail.com wrote: hello, i have to use rspec and cucumber in a project and i have no idea how to use it ? help me guys.. http://pragprog.com/titles/achbd/the-rspec-book Pretty complete overview

Re: [Rails] can't set up Git for some reason

2011-03-04 Thread Peter Bell
Quick look suggests you created a private repo: https://github.com/gabaluschi/ Try your public repo first and make sure that is working: git://github.com/gabaluschi/Gabaluschi.git Also, this is a git question - not a Rails one. I'd check for support in the git world first. Best Wishes, Peter

Re: [Rails] Update and Redevelopment

2011-03-03 Thread Peter Bell
On Mar 3, 2011, at 3:54 PM, Doug Clark wrote: What I'm getting at is I believe our system needs an overhaul - a complete rewrite from top to bottom - and I'd like to do it with the most recent version of Rails. I get the feeling - I really do. But just before you start, go get a copy of Mike

Re: [Rails] A way to stop some fixtures from loading for certain tests?

2011-03-03 Thread Peter Bell
It seems like best practice is to use a factory gem like factory_girl instead of fixtures. Easily getting different data for different tests is one of the benefits of such an approach. Best Wishes, Peter On Mar 3, 2011, at 6:00 PM, Don.Mc wrote: I am using Rails 3. Is there a way to stop a

Re: [Rails] mysql gem problems

2011-02-19 Thread Peter Bell
It might be worth leaving a little more context in your postings. I don't know offhand which packages you're looking for as I'm just checking in on the list in a spare moment. I may not know the answer to your question, but if there was some judicious snipping of the original email I'd have a

Re: [Rails] mysql gem problems

2011-02-19 Thread Peter Bell
On Feb 19, 2011, at 9:43 AM, deadnuker wrote: See thats the thing I have done everything by the book. and with the feedback i been getting but it stil says: Building native extensions. This could take a while... ERROR: Error installing mysql: ERROR: Failed to build gem native

Re: [Rails] Limitations on parameters in routes?

2011-02-17 Thread Peter Bell
On Feb 16, 2011, at 6:40 PM, Philip Hallstrom wrote: On Feb 16, 2011, at 3:02 PM, Peter Bell wrote: I have the following route: get /places/:lat/:lng = api#places When I go to /places/1/2 it works fine When I try to go to /places/40.728601/-73.991972 (a useful lat/lng) I get

[Rails] Limitations on parameters in routes?

2011-02-16 Thread Peter Bell
I have the following route: get /places/:lat/:lng = api#places When I go to /places/1/2 it works fine When I try to go to /places/40.728601/-73.991972 (a useful lat/lng) I get a Routing error: No route matches /api/v11/places/40.728601/-73.991972 Any suggestions on how I can get this working?

[Rails] Fwd: Limitations on parameters in routes?

2011-02-16 Thread Peter Bell
with the spirit of distinct, meaningful URI's? Best Wishes, Peter Begin forwarded message: From: Peter Bell pe...@pbell.com Date: February 16, 2011 6:02:13 PM EST To: rubyonrails-talk@googlegroups.com Subject: Limitations on parameters in routes? I have the following route: get /places/:lat/:lng

Re: [Rails] Path and Url

2011-02-15 Thread Peter Bell
My understanding is that one is a full url, the other is a path. Generally you'd use a path, but if you are sending an email or doing something else that needs a full URL, you'd use the _url. Best Wishes, Peter On Feb 15, 2011, at 4:05 PM, Rodrigo Alves Vieira wrote: Hello everyone, what's

Re: [Rails] Re: GemFile error + General Help?

2011-02-13 Thread Peter Bell
On Feb 13, 2011, at 11:35 AM, Fernando Perez wrote: As a side note question, should Gemfile.lock be added to the repository and uploaded to the production server? Generally it's not a good idea to include generated artifacts in a repository, but I do check my gemfile.lock in for a number of

Re: [Rails] GemFile error + General Help?

2011-02-12 Thread Peter Bell
Let me qualify the fact that I am still getting up to speed with bundler, so take this advice with a grain of salt. I don't know if this is still necessary, but in my Gemfile I have: gem 'sqlite3-ruby', :require = 'sqlite3' So the gem I'm using is sqlite3-ruby but the library is sqlite3. If

Re: [Rails] Map integration with showing places within the particular radius

2011-02-11 Thread Peter Bell
And the geokit-rails3 gem which adds basic finders by distance. It's not a completely functional port of the old geokit-rails because of all the changes in Rails3, but the basic distance finders work just fine. https://github.com/jlecour/geokit-rails3 Best Wishes, Peter On Feb 11, 2011, at

Re: [Rails] Things that framework other than RoR Cannot do?

2011-02-10 Thread Peter Bell
Not generally a fan of such threads, but I program in a bunch of languages using a variety of web frameworks. Apart from the completeness of the ecosystem and the fact that a lot of things just work better, for me the biggest win with Rails is pain free testing. If I need to write some high

Re: [Rails] Things that framework other than RoR Cannot do?

2011-02-10 Thread Peter Bell
On Feb 10, 2011, at 10:42 AM, David Kahn wrote: On Thu, Feb 10, 2011 at 12:59 AM, Julian Leviston jul...@coretech.net.au wrote: Mostly, ruby makes experienced programmers happier Yay! I was going to say this. Oh, and don't forget the ponies and rainbows :) Oh wait. I am happier, but

[Rails] Rails 3, JRuby, practical experience?

2011-02-10 Thread Peter Bell
Hi There, Just trying to get a sense who is running Rails 3 on JRuby and in general how good the experience in. Generally I'm just deploying to Heroku, but I have some Java shops I work with that have an interest in war based deployment of Rails apps. How's the gem compatibility on the whole?

Re: [Rails] Gem to work with image attachement

2011-02-10 Thread Peter Bell
Paperclip? https://github.com/thoughtbot/paperclip Best Wishes, Peter On Feb 10, 2011, at 3:13 PM, Andre Fonseca wrote: I started to develop an upload app. This app will be in Rails. Can you suggest some GEM that would make it easier to work with image attachements? I'm trying to use

Re: [Rails] Testing and application

2011-02-03 Thread Peter Bell
I'd start with cucumber and capybara to verify key stories. That way you at least have smoke tests for going through the system. If you have time after that, put in some lower level rspec tests - mainly around areas of complexity. Then every time you add a feature, change a piece of code or get

Re: [Rails] SMS Rails 3 Plugin

2011-02-03 Thread Peter Bell
WHich provider do you want to use? A google search brings up gems for Clickatell (http://clickatell.rubyforge.org/) and textmagic (http://tuzinsky.com/textmagic/). I've heard of Clickatell but not used them. Haven't come across textmagic. I'm about to do a project using Twilio which seems to

Re: [Rails] What is Rake and Gem is actually in RubyonRails.???

2011-02-03 Thread Peter Bell
Rake is a build system. Gems are packages of reusable ruby functionality so Gem is a package manager for providing easy access to the gems. Best Wishes, Peter On Feb 3, 2011, at 6:04 AM, amritpal pathak wrote: I am new to Ruby on Rails and number of times interacted with rake and gem. Can

Re: [Rails] ROR Developer

2011-02-03 Thread Peter Bell
If they need to come to meetings, it might be worth clarifying where your business (or more importantly, where the meetings) are based. It's up to you, but I also usually give a ballpark rate if I'm looking for someone so the $125/hr devs don't waste their time on a $40/hr opportunity and so I

Re: [Rails] SMS Rails 3 Plugin

2011-02-03 Thread Peter Bell
Has anyone got any experience with Moonshado for SMS? Pricing looks good and integration with Heroku I'm guessing will be easy . . . http://addons.heroku.com/moonshadosms Thoughts? I'm comparing to Twlio which is what I would have otherwise gone with . . . Best Wishes, Peter On Feb 3, 2011,

[Rails] Anyone using RubyMine?

2011-02-01 Thread Peter Bell
Hi There, Just wondered if anyone has experience of using RubyMine and any thoughts on it one way or the other? I use IntelliJ for larger Groovy/Grails projects and find the IDE support useful. For smaller Groovy/Grails projects and for all of my Ruby and Rails I find TextMate and a few

Re: [Rails] Recommended workflow

2011-01-31 Thread Peter Bell
On Jan 31, 2011, at 3:10 AM, elitalon wrote: Some questions come to mind: do you recommend to make a commit after applying a migration? Isn't a migration some kind of commit itself? While in general putting generated artifacts into a repo isn't usually a good idea, I always keep things like

Re: [Rails] Re: What is the number of Ruby instances needed on a server?

2011-01-31 Thread Peter Bell
You have to performance test based upon likely usage scenarios (click flows) for your app. I've never come across good metrics in any programming language for how many users can a web app handle. It just depends too much on how the users use the app and what the app does to respond to those

Re: [Rails] Re: Re: Why use send when you can call the method directly?

2011-01-28 Thread Peter Bell
On Jan 28, 2011, at 11:55 AM, David Kahn wrote: If a private method is an intermediate value in a computation, just test the end result. If a private method really needs to be tested separately, then it's telling you that it wants to be public. I disagree -- for me public is what I want to

Re: [Rails] Macbook Air 13 for Rails Dev

2011-01-25 Thread Peter Bell
Not a pointless question at all. Came up at a local UG in NYC last week. One dev is using a 13 air as their primary dev machine. I'm a little concerned by the limit of 4Gb RAM, but they are reporting really good experienced with the fast disk I/O making up for the limited RAM. Personally I use

Re: [Rails] Re: Macbook Air 13 for Rails Dev

2011-01-25 Thread Peter Bell
I'd be careful with anything processor intensive. You don't get anything for free. If you need the weight/price, I'd check it out. Otherwise . . . I am thinking of one as a travel/backup machine though . . . and they seem quite capable for Rails dev in Textmate. Best Wishes, Peter On Jan 25,

Re: [Rails] Project Management Tool with Git integration

2011-01-24 Thread Peter Bell
I've used Unfuddle which gives you a separate git repo but doesn't hook into github. It's not bad at all. I've also heard lots of good things about Pivotal tracker. Re: time tracking and project status, check out add ons for basecamp. I'm not a big fan, but I know most of the stuff it doesn't

Re: [Rails] Re: confused on how to associate models.

2011-01-24 Thread Peter Bell
On Jan 24, 2011, at 4:17 PM, Mauro wrote: I was confused thinking about grails. With rails User can be used, with grails don't. Why not? I have Grails apps with a User domain class that work just fine. Although as a best practice in the Grails world you want to package your domain classes,

Re: [Rails] which rails hosting?

2011-01-17 Thread Peter Bell
Firstly, +1 for Heroku and Amazon S3. It's very cheap to start. If you really scale, there is a point where you might want to roll your own cloud hosting directly with EC2 to lower the costs, but it's really the perfect way to get started and can grow with you if it's worth continuing to pay

Re: [Rails] Re: Mocking 3rd party API in Rails

2011-01-17 Thread Peter Bell
You might also want to check out vcr - a standard wrapper around a bunch of different stubbing libraries including fakeweb. https://github.com/myronmarston/vcr#readme Best Wishes, Peter On Jan 17, 2011, at 4:45 PM, Robert Walker wrote: Rodrigo Alves Vieira wrote in post #975547: Hello

Re: [Rails] Re: text box value in the confirmation popup

2011-01-17 Thread Peter Bell
For what? unless you quote the relevant part of the original email and put your responses inline anyone who happens to stumble into the middle of your issue is unlikely to be able to help. Best Wishes, Peter On Jan 17, 2011, at 5:47 PM, Me wrote: No I am not getting a prompt. -- You

Re: [Rails] Download Instructions Unnecessarily Complicated, Probably Wrong for Ruby 1.9+

2011-01-17 Thread Peter Bell
On Jan 17, 2011, at 1:26 PM, Craig Stuntz wrote: The instructions here http://rubyonrails.org/download say: 1. Download + install Ruby. 2. Download + install gems. 3. gem install rails. (1) worked fine. I chose Ruby 1.9.2. (2) failed, perhaps because current Ruby already has gems. Once I

Re: [Rails] JOB: coders/developers needed for social commerce site. Board consists of public company CEOs, VC founder and NFL athlete

2011-01-12 Thread Peter Bell
On Jan 11, 2011, at 6:39 PM, Shane wrote: Soletron -- Job Description Relevant experience/languages: Just to be really clear . . . Ruby on Rails, PHP programming Because you coded in PHP to date and want to port to Ruby? MVC Framework(Zend, Symfony,CakePHP) Are you really using all

Re: [Rails] JOB: coders/developers needed for social commerce site. Board consists of public company CEOs, VC founder and NFL athlete

2011-01-12 Thread Peter Bell
On Jan 12, 2011, at 9:30 AM, Peter Hickman wrote: Of course saying where they are located would be a bonus :) Well at least they didn't say local applicants preferred :) Unless it was a test - figure out where we're located or you don't have the initiative we want of applicants . . . Best

Re: [Rails] Re: refactoring models

2011-01-12 Thread Peter Bell
Just to be clear, what specific performance tests are you having a problem with? Refactoring for better readability/maintainability every time your tests are green is a good practice. Trying to make micro-optimizations in memory profile, sql queries, caching, etc without a specific failing

Re: [Rails] Re: refactoring models

2011-01-12 Thread Peter Bell
It probably is, but why were you putting the data into a database? If there's a valid reason to do that, do it and then fix db performance with caching if it becomes a limiting factor. If there's not a valid reason to put the data into a database, why would you do so? Start with the simplest

Re: [Rails] Re: (JOB) Ruby on Rails Developers- Strongmail , Redwood Shores, CA

2011-01-12 Thread Peter Bell
, the changes and the speed of change is awe inspiring. On Jan 11, 6:08 am, Peter Bell pe...@pbell.com wrote: On Jan 10, 2011, at 7:51 PM, Michelle wrote: 2-20+ years of experience developing web based applications I was just about to joke about wanting to find someone outside of CERN with 20

Re: [Rails] (JOB) Ruby on Rails Developers- Strongmail , Redwood Shores, CA

2011-01-11 Thread Peter Bell
On Jan 10, 2011, at 7:51 PM, Michelle wrote: 2-20+ years of experience developing web based applications I was just about to joke about wanting to find someone outside of CERN with 20+ years of web app experience, but it looks like we're getting close to it being an accurate number

[Rails] Best practices for a collection . . .

2011-01-07 Thread Peter Bell
Hi All, I'm working with an API that returns me a collection of locations as a hash. I could just display things like @places[:feature][:name] etc, but that seems pretty ugly (and brittle) to me. So I'm tempted to have a non-AR, non-persisted model class called Place. If I was writing this

Re: [Rails] regarding installation

2010-12-22 Thread Peter Bell
On Dec 22, 2010, at 7:59 AM, Chinmaya Joshi wrote: Hello I am using Linux ubuntu 10.04 I have problems while setting up ruby on rails. I am following the steps given in the book Agile web development with rails. Can anyone please help. Probably, but only if you describe what you've done, what

Re: [Rails] Re: graphic plugin

2010-12-10 Thread Peter Bell
On Dec 10, 2010, at 9:45 AM, Marnen Laibow-Koser wrote: http://lmgtfy.com?q=arbitrary+query Love it - 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 rubyonrails-t...@googlegroups.com. To

Re: [Rails] Re: jruby on rails scheduling options

2010-12-08 Thread Peter Bell
On Dec 8, 2010, at 12:55 PM, Marnen Laibow-Koser wrote: I'm going to suggest that you experiment with switching away from JRuby. I think you have chosen it for what appear to be the wrong reasons: if you are using Ruby correctly, you generally won't need Java for heavy lifting. I don't

Re: [Rails] Re: Re: Email marketing services

2010-11-29 Thread Peter Bell
I'd qualify this. I have a number of clients who send out a modest number of confirmation emails and yet have managed to get blacklisted by various ISPs over the years. It is factually correct that sending too many emails is not the issue. it's more to do with the content of the email, the

  1   2   >