[Rails] [JOB] App re-write

2012-12-19 Thread Bill Walton
I have an application that needs to be rewritten in Rails and am beginning the process of identifying potential vendors and obtaining bids. The app is currently written in Perl / Catalyst though I do not believe that a lack of experience in that language / framework will be an obstacle. The objec

Re: [Rails] Streaming in Rails 3.2

2012-12-09 Thread Bill Walton
The other way is to couple your app with either Faye or Juggernaut. On Sun, Dec 9, 2012 at 8:27 AM, Norbert Melzer wrote: > I the client poll every few seconds via AJAX. There is no other way. > Am 09.12.2012 14:28 schrieb "Ravi Laudya" : > >> Hello all, >> >> I am writing an app to stream log f

Re: [Rails] How to allow the user to user their own domain name

2012-12-06 Thread bill walton
Hi Loganathan, On Thursday, December 6, 2012 4:12:22 AM UTC-6, Loganathan Sellappa wrote: > > Please have a look on to the www.shopify.com, where each user can create > a store with unique domain(subdomain) name like "www.logan.shopify.com". > This is the stereotypical Rails approach to multi-t

Re: [Rails] Re: Rails and services - Architecture question

2012-10-29 Thread Bill Walton
Hi Pierre, On Mon, Oct 29, 2012 at 11:23 AM, PierreW wrote: > Hi Colin, Bill > > Here is what we are doing: > > - we pass to our "service" the Model objects (we Marshal.dump them in > the main app, enqueue them, and the service Marshal.load them) instead > of their unique ID. > - in the service,

Re: [Rails] Rails and services - Architecture question

2012-10-29 Thread Bill Walton
Hi Pierre, On Mon, Oct 29, 2012 at 10:50 AM, PierreW wrote: > Hi guys! > > We have moved a part of our Rails app into a "service", i.e. a Ruby > script that is demonized and communicates with the main app through a > message queue. > This service needs to know about the models in the Rails app,

Re: [Rails] more misleading content on the web regarding ruby method lookup algorithm

2012-10-06 Thread Bill Walton
Hi John, On Sat, Oct 6, 2012 at 2:43 PM, John Merlino wrote: > I read this article: > > http://www.madebydna.com/all/code/2011/06/24/eigenclasses-demystified.html > > Author makes claim that are flat out wrong. She says: "Class gets > "pushed up" the lookup chain and becomes a superclass." That

Re: [Rails] Re: New to Rails. Looking for some help

2012-09-21 Thread Bill Walton
Hi John, On Fri, Sep 21, 2012 at 7:37 AM, John B. wrote: > Bill - > > Thanks so much for your response. I spent a good portion of yesterday on > google trying to solve this. I was dancing around the solution. I > appreciate your help. > > You're welcome. And welcome to the Rails community! Bes

Re: [Rails] New to Rails. Looking for some help

2012-09-20 Thread Bill Walton
Hi John, On Thu, Sep 20, 2012 at 1:52 PM, John B. wrote: > I have been working with Ruby on Rails for about a week. > > I am trying to figure out a problem. > > I have a small relational database. > > resources :client do > resources :department do > resources :task > end > end > > What

Re: [Rails] Help getting started: Newbie: Windows and Rails

2012-09-02 Thread Bill Walton
Hi Bruce, On Sun, Sep 2, 2012 at 6:00 AM, Bruce Whealton wrote: > > Anyway, I keep going in circles. I get a message saying that I need to > install gem msyql2 which I do and it reports back with no error and so I > try again to install the app with the rails command and I get the same > e

Re: [Rails] Re: hii friends,,,,,i m new to rails......i think there is a problem in destroy command .

2012-08-16 Thread Bill Walton
On Thu, Aug 16, 2012 at 3:09 PM, AmateurCoder wrote: > > Are you saying to run rails destroy model foo and foo doesn't exist then > you should get an error or exception message? If you try this on the > command line rails destroy model foo, it will run the opposite of the > generate command; howe

Re: [Rails] Re: [JOB] Ruby on Rails Positions at IBM (co-op and full-time)

2012-08-13 Thread Bill Walton
Please reply directly to the OP, not to the list. On Mon, Aug 13, 2012 at 11:11 AM, kishore s. wrote: > Hello, > > I am kishore i completed my ruby on rails course I heard that IBM > is looking for ruby on rails developer.I am writing to express my > sincere interest in securing employment

Re: [Rails] Eager Load Grandchilden w/o Children

2012-08-10 Thread Bill Walton
Hi Tyler, On Thu, Aug 9, 2012 at 2:32 PM, t.pickett66 wrote: > I have several models that are all linked together in a time > tracking/billing system ala: > > class Claim < AR::B > has_many :appointments > > def student > @student ||= Student.joins(student_appointments: > :claim).where('

Re: [Rails] Pop quiz: Where do you watch for job postings?

2012-08-09 Thread Bill Walton
On Thu, Aug 9, 2012 at 10:07 AM, Michael Pavling wrote: > On 9 August 2012 16:04, Ed W wrote: > > Hi all, I'm looking for some advice on where we should be putting an > advert > > if we are looking to hire a full time rails developer? Or turning it > around > > what websites (or mailing lists) d

Re: [Rails] Is twitter devloped in Ror

2012-07-16 Thread Bill Walton
Twitter was initially developed on Rails. The front end is still Rails. They had to do some middle-ware replacements a while back to scale. Google 'rails twitter' for more history. On Mon, Jul 16, 2012 at 8:21 AM, Yaw Boakye elGran wrote: > @Amit when was that? Their last blog post about the ma

Re: [Rails] a hands-on tutoring needed

2012-07-01 Thread Bill Walton
Hi Sehrguey, On Sun, Jul 1, 2012 at 8:04 AM, sehrguey o. wrote: > dear each, and all and others, > > being a completeest newbie to RoR and having got dumb by a month or so > of googling how to add search faculty to a web app, I ask you for > help. > > All I got is a database of 200 records so the

[Rails] utf-8 character in non-english locale file throwing Encoding::CompatibilityError exception

2012-06-18 Thread Bill Walton
Greetings! I'm having a very strange problem I could use help understanding. I've got 2 locale files: en.yml and fr.yml. When I have a utf-8 character in the en.yml file it displays fine. When I put that exact same character in the fr.yml file, I get an Encoding::CompatibilityError exception Here

Re: [Rails] How to use a text_field for dates?

2012-06-17 Thread Bill Walton
Hi Marc, >> On Thu, Jun 14, 2012 at 7:23 PM, Marc C. wrote: >>> >>> Hello, >>> >>> I need to accept dates in a form using a text_field and not a >>> date_select. Why? Well, because for users it's faster to type a date. >>> >>> But if I enter a simple date like "13/05/2012" (dd/mm/ format), wh

Re: [Rails] Gallery in RoR

2012-05-21 Thread Bill Walton
Hi Lauris, On Mon, May 21, 2012 at 8:56 AM, Lauris Zaicevs wrote: > Hi all! > > I want to create a simple gallery in Ruby on Rails app, where i can > upload, edit and delete it. > > Could you suggest some tutorilal, how to create that? > http://railscasts.com/episodes/253-carrierwave-file-upload

Re: [Rails] Opportunity for Ruby On Rails Developer

2012-05-12 Thread Bill Walton
The rule in the past was that posted on the group's home page was that job postings were allowed but should include the string '[JOB]' in the subject line so that those who did not wish to see the postings could create a filter. The home page now contains no statement of any sort about anything.

Re: [Rails] Re: rails query [3.2]

2012-04-21 Thread Bill Walton
Hi Erwin, I'm sorry I didn't see your first post. On Sat, Apr 21, 2012 at 8:12 AM, Erwin wrote: >> I would like to have a single line to get both, posted and commented >> counts >> where am I wrong ?  thanks for feedback Why do you want to count 2 separate / independent resources in one SQL

Re: Re[2]: [Rails] Protecting code of cookie cutter web sites

2012-04-09 Thread Bill Walton
Hi Ralph, On Mon, Apr 9, 2012 at 11:16 AM, Ralph Shnelvar wrote: > Now is there a technological way rather than a legal way to protect code? Other than a SaaS offering, I do not know of, and am unable to imagine, one. Once the code is out of your physical control, the only real protection is

Re: [Rails] Protecting code of cookie cutter web sites

2012-04-09 Thread Bill Walton
Hi Ralph, On Mon, Apr 9, 2012 at 9:44 AM, Ralph Shnelvar wrote: > So how can I protect the RoR code? The only real protection available for software today, whether it's fully visible as in RoR or compiled, is via licensing. Read the license on pretty much any piece of packaged software you've

Re: [Rails] [ANN] Rails 3.2.3.rc1 was released!

2012-03-27 Thread Bill Walton
Hi Santiago, On Tue, Mar 27, 2012 at 12:16 PM, Santiago Pastorino wrote: > Rails 3.2.3.rc1 has been released. > *ActionPack* > > *   Do not include the authenticity token in forms where remote: true > as ajax forms use the meta-tag value *DHH* Could you please point me to more on this? Thanks,

Re: [Rails] Re: Fear of sharing

2012-03-25 Thread Bill Walton
On Sun, Mar 25, 2012 at 1:10 PM, Samuel Mensah wrote: >> Team is much, much more important to success than Product.  Build >> your team.  Then build your product. >  I've thought of this for a while but the fact that you mentioned it > which rings a bell means I should consider it which I have and

Re: [Rails] Fear of sharing

2012-03-25 Thread Bill Walton
Hi Samuel, On Sun, Mar 25, 2012 at 12:38 PM, Samuel Mensah wrote: > Hi guys, I have an idea for a cool web application... > I'm kinda confused. Agreed. First evidence is that you've asked a fundamental business question on a technical forum ;-) > I'm not sure if I should share it or wait til

Re: [Rails] Compare arrays

2012-02-27 Thread Bill Walton
On Mon, Feb 27, 2012 at 5:29 PM, Rodrigo Ruiz wrote: > Yes, duplicates are important. Assuming nil entries may also be important... ruby-1.9.2-p290 :016 > a = [2,1,4,nil,1] => [2, 1, 4, nil, 1] ruby-1.9.2-p290 :017 > b = [1,2,2,4,nil,nil] => [1, 2, 2, 4, nil, nil] ruby-1.9.2-p290 :018 > a.comp

Re: [Rails] Compare arrays

2012-02-27 Thread Bill Walton
On Mon, Feb 27, 2012 at 5:05 PM, Bill Walton wrote: > On Mon, Feb 27, 2012 at 4:51 PM, Rodrigo Ruiz wrote: >> Ya, that is what I used (with sort), I was just wondering if there is a >> native way like: > > No need to waste cycles like that.  Array math will do fine. > &g

Re: [Rails] Compare arrays

2012-02-27 Thread Bill Walton
On Mon, Feb 27, 2012 at 4:51 PM, Rodrigo Ruiz wrote: > Ya, that is what I used (with sort), I was just wondering if there is a > native way like: No need to waste cycles like that. Array math will do fine. > a = [1, 4, 2] > b = [2, 1, 4] > > a.has_same_elements_as(b) ruby-1.9.2-p290 :001 > a =

Re: [Rails] Re: Multiple feature creation.

2012-02-09 Thread Bill Walton
On Thu, Feb 9, 2012 at 5:43 AM, Christopher Jones wrote: >> Use an after_create callback in the User model to create the associated >> Wishlist record. > > So in the user model would I define first like this: > > after_create :set_wishlist > > then the following: > > def set_wishlist >  @wishlist

Re: [Rails] Multiple feature creation.

2012-02-08 Thread Bill Walton
Hi Chris, Use an after_create callback in the User model to create the associated Wishlist record. HTH, Bill On Feb 8, 2012 3:25 PM, "Christopher Jones" wrote: > Hi all I wondering how I would go about generating multiple features on > user creation. I want every user who signs up to have a wis

Re: [Rails] Javascript & Ajax Organization

2012-01-22 Thread Bill Walton
Hi Mateusz, On Sun, Jan 22, 2012 at 11:29 AM, Mateusz W. wrote: ... > Now, if I add an Ajax layer over this, things seem to complicate quite a > bit. Say, if I want to perform some kind of request using jQuery, I need > to be able to know the appropriate path to perform this request on (ex, > use

[Rails] I18n effort estimate help needed!

2012-01-20 Thread Bill Walton
I need to provide an estimate (windage-level) for internationalizing / localizing (both) an existing web app. The app is built on a 'homegrown' Ruby framework running on jRuby 1.6.5. If anyone has any suggestions re: approaches / gotchas to producing an estimate for this, I'd really appreciate he

Re: [Rails] posts re consulting/help with projects

2012-01-14 Thread Bill Walton
Hi Dave, On Sat, Jan 14, 2012 at 4:13 PM, Dave Aronson wrote: > > What's the feeling here on announcing work, or availability for work? > The Google Group's page doesn't say anything about it, nor does the > forum (at least without registering), but I haven't seen many such > posts, which I think

Re: [Rails] Observe field with jquery in Rails 3.1

2012-01-11 Thread Bill Walton
Hi Hans, On Wed, Jan 11, 2012 at 10:35 AM, Hans wrote: > I tries to observe a change  in a field  with jquery in Rails 3.1 in > order to be able to implement  two cascading select boxes. > A a first step I just try to observe a click in a div using jquery > I have the following function in a .js

Re: [Rails] Re: Equivalent to observe_field in rails 3

2012-01-08 Thread Bill Walton
On Sun, Jan 8, 2012 at 11:40 AM, venkata reddy wrote: > As i already mentioned above, i am using 3.0.10 here and the default > js library is prototype. But still i am not able make observe_field > working. Missed that. Sorry. In that case I'd need to know more about what 'not working' means. Y

Re: [Rails] Equivalent to observe_field in rails 3

2012-01-08 Thread Bill Walton
Hi Venkata, On Sun, Jan 8, 2012 at 1:57 AM, venkata reddy wrote: > Hi every one, >                   i need something like populating all the states > when a particular country selected. My exact requirement is, in my > project management tool, when a project is selected all of its > activities s

Re: [Rails] set a default value with simple_form

2012-01-07 Thread Bill Walton
Hello Brent, On Sat, Jan 7, 2012 at 1:17 PM, brent brent wrote: > hello > anyone know how i can set a default integer value with simple_form, i > have code like this below in my view but its not working. > > <%= f.input :age, :value => '30' %> > > i would like the input box to have the value of 3

Re: [Rails] js update partial missing template

2012-01-05 Thread Bill Walton
On Thu, Jan 5, 2012 at 5:26 PM, Craig White wrote: > > On Jan 5, 2012, at 3:57 PM, Bill Walton wrote: >> >> Then my best advice would be to double check the accepts header using >> Live Http Headers.  You may need to do some explicit setup prior to >> the post. >

Re: [Rails] js update partial missing template

2012-01-05 Thread Bill Walton
On Thu, Jan 5, 2012 at 4:44 PM, Craig White wrote: > > On Jan 5, 2012, at 3:37 PM, Bill Walton wrote: > >> Hi Craig, >> >> On Thu, Jan 5, 2012 at 4:18 PM, Craig White wrote: >>> >>> Missing template ... :formats=>[:html]}. >> >> T

Re: [Rails] js update partial missing template

2012-01-05 Thread Bill Walton
Hi Craig, On Thu, Jan 5, 2012 at 4:18 PM, Craig White wrote: > > Missing template ... :formats=>[:html]}. That looks like a clue. Have you checked your request header? HTH, Bill -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post

Re: [Rails] call partial by jquery

2011-12-23 Thread Bill Walton
On Fri, Dec 23, 2011 at 12:08 PM, Bruno Meira wrote: > Ok!! > I will take a look better in these parameters. > I'm using default chrome developers js debug. Is Firebug better? > thx for the help ;D I do all my dev work in Firefox because of the tools. I hear Chrome is catching up but don't have

Re: [Rails] call partial by jquery

2011-12-23 Thread Bill Walton
On Fri, Dec 23, 2011 at 11:19 AM, Bill Walton wrote: > On Fri, Dec 23, 2011 at 11:12 AM, Bruno Meira wrote: >> H >> Ok, I will try do this using an ajax call... >> But How can I pass object references using an ajax call? Is it possible in >> rails or I need pas

Re: [Rails] call partial by jquery

2011-12-23 Thread Bill Walton
On Fri, Dec 23, 2011 at 11:12 AM, Bruno Meira wrote: > H > Ok, I will try do this using an ajax call... > But How can I pass object references using an ajax call? Is it possible in > rails or I need pass object attributes by JSON? I believe that's what the 'data' argument of the .load fun

Re: [Rails] call partial by jquery

2011-12-23 Thread Bill Walton
HI Bruno, On Fri, Dec 23, 2011 at 11:01 AM, Bruno Meira wrote: > Hi Guys, > Sb could help me in this problem? > I have an partial that I pass some parameters... > I need to create many partials by click event of a link, How can I do that? > > I tried to do like this way > But it does'nt work... >

Re: [Rails] Bypass XHR redirect by overriding redirect_to

2011-12-23 Thread Bill Walton
Hi Michael, On Thu, Dec 22, 2011 at 6:33 PM, Michael Mahemoff wrote: > A lot of calls in Rails end in a redirect_to, and this is really an > unnecessary round trip in the case of XHR calls. This might sound > crazy, but why not just handle the redirect on the server? I realize > in some cases a r

Re: [Rails] ROR return JSON with 406 Not Acceptable error

2011-12-09 Thread Bill Walton
Hi Krisnaraj, On Fri, Dec 9, 2011 at 4:05 AM, Krishnaraj KR wrote: > When we return JSON output using 'render :json =>@profiles', the > output will return the required results with a 406 error. How can > avoid that 406 Not Acceptable error ? This bit me yesterday. You've told rails that you're

Re: [Rails] Determine Bank Name from Routing Number

2011-12-08 Thread Bill Walton
This has nothing to do with rails. Google "bank routing number list" On Thu, Dec 8, 2011 at 12:01 PM, Rails Learner wrote: > Hello, > > I am working on a project where we need to look up bank name (only > US banks) from routing number. I will like to use something that is > dynamic and has up-to

Re: [Rails] cannot create child through association

2011-12-06 Thread Bill Walton
HI Colin, On Tue, Dec 6, 2011 at 8:46 AM, Colin Law wrote: >> ruby-1.9.2-p290 :006 > p.only_child.create(:name => 'sam') >>  OnlyChild Load (0.4ms)  SELECT "only_children".* FROM >> "only_children" WHERE "only_children"."poppa_id" = 1 LIMIT 1 >> NoMethodError: undefined method `create' for nil:

[Rails] cannot create child through association

2011-12-06 Thread Bill Walton
Before I call this a bug, would someone tell me if I'm missing something here? Using 1.9.2 and 3.1.1... I can create a child if the relationship is has_many, but not if the relationship is has_one. rails new association_test cd association_test rails g model Poppa name:string rails g model OnlyC

Re: [Rails] Re: JOBS

2011-10-28 Thread Bill Walton
Peter, Unless the rules have been changed, the requirement is that you preface the subject line with [JOB] so that those who want to can filter them out. Best regards, Bill On Fri, Oct 28, 2011 at 3:04 PM, Peter Peter wrote: > Sorry I have just seen I can't post job ads. Sh8t I registered to >

Re: [Rails] Ruby adoption statistics

2011-10-07 Thread Bill Walton
Hi Andrew, On Fri, Oct 7, 2011 at 1:34 PM, Andrew wrote: > Do you know where I can find articles/statistics on Ruby adoption It's going to be difficult to get good data. The biggest reason, IMHO, is that companies that do adopt RoR are going to be doing so for the productivity. If it works, th

[Rails] actual request-received time?

2011-09-03 Thread Bill Walton
There are a number of 'layers' a request must pass through before it actually 'hits' a Rails app (e.g., Apache receives a request, Apache starts a new thread, new thread processes the request and determines that it's for a dynamic resource so Apache thread passes it to Passenger, Passenger passes i

Re: [Rails] Using timezone javascript to set Time.zone

2011-07-13 Thread Bill Walton
Hi Ben, On Wed, Jul 13, 2011 at 9:47 AM, Ben Perry wrote: > I've got a javascript that provides me with the timezone for the > client. I want to use this to set Time.zone so that all my times > stored in the database are displayed in the timezone for the client. > So really simplistically > > var

[Rails] is Rack right for this?

2011-07-11 Thread Bill Walton
Greetings, My 2.3.2 app has 2 components. It serves a browser-based client, and it serves a web service client. Each client has its own set of controllers to separate authentication / authorization cleanly and clearly. The web service client sends gets, posts, and puts, some with xml bodies, an

Re: [Rails] Filters

2011-06-05 Thread Bill Walton
Hi Fernando, On Sun, Jun 5, 2011 at 3:59 PM, Fernando Aureliano wrote: > Hi, > How I do a filter in a block of code? > example: > I have a block: > <% @notes[(0..3)].each do |note| %> <% if notes.type.class == String %> >           >             <%= notes.note %> >             <%= notes.t

Re: [Rails] Re: trying to get z-index to work - CSS styling with RJS

2011-05-31 Thread Bill Walton
On Tue, May 31, 2011 at 6:25 PM, Jedrin wrote: > > I tried this and I seem to still have the same exact problem: Another resource that's incredibly helpful, in case you don't already subscribe, is the css-discuss list. It's run by Eric Meyer and is a how-do-i-do-or-fix-this-thing list. The name

Re: [Rails] trying to get z-index to work - CSS styling with RJS

2011-05-31 Thread Bill Walton
On Tue, May 31, 2011 at 5:48 PM, Walter Davis wrote: > > On May 31, 2011, at 6:32 PM, Bill Walton wrote: > >>  I believe most current browsers >> will give precedence to the stylesheet over inline styling. > > Sorry, I disagree with this. The stylesheet is given the

Re: [Rails] is there something peculiar about a render :update block ?

2011-05-31 Thread Bill Walton
Hi Jedrin, On Tue, May 31, 2011 at 5:11 PM, Jedrin wrote: > >  When doing RJS stuff of the form below, I seem to recall unexpected > behavoir where if I had many method calls within that block things > didn't work as expected and variables would not have values I > expected. I know I am not being

Re: [Rails] trying to get z-index to work - CSS styling with RJS

2011-05-31 Thread Bill Walton
Hi Jedrin, On Tue, May 31, 2011 at 5:22 PM, Jedrin wrote: >  I have a section of controller code that tries to style a page with > moving text and images. > This used to work a few years ago, but I have not had the site working > for awhile and I am trying to resurrect it. > Below is some of the

Re: [Rails] Re: is polymorphic has_one/has_many possible? (in addition to polymorphic belongs_to)

2011-05-06 Thread Bill Walton
Hi Alexey, On Fri, May 6, 2011 at 6:59 AM, Alexey Muranov wrote: > Thanks Bill, > i am aware of the alternatives, but i was wondering if i can keep this > database schema which i like for that case, and to still be able to use > >  payment = Payment.find(1) >  puts payment.purchase.inspect > > so

Re: [Rails] is polymorphic has_one/has_many possible? (in addition to polymorphic belongs_to)

2011-05-06 Thread Bill Walton
Hi Alexey, On Fri, May 6, 2011 at 5:21 AM, Alexey Muranov wrote: > Hello, > > i wonder if the following is possible in Rails (seems like not), and if > not, whether such database structure is discouraged for some good > reason. > > I *roughly* want to have > >  class Payment < ActiveRecord::Base

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

2011-04-28 Thread Bill Walton
On Thu, Apr 28, 2011 at 7:10 PM, Andrew Miehs wrote: > On Fri, Apr 29, 2011 at 1:25 AM, radhames brito wrote: >>> >>> >>> So if I use memcached, the memory would be used up multiple times? >>> >> >> nop, what is more awesome is that you can pass an ip (or an array) to the >> config and it will us

Re: [Rails] Performance question about ruby/rails

2011-04-28 Thread Bill Walton
Hi Ken, On Thu, Apr 28, 2011 at 9:39 AM, egervari wrote: > I have a program I'd like to write and I'd like to get off of Java and > start using something more productive. I have played around with > Rails, and I think I could the same app in a fraction of the time. Welcome! I think you wouldn't

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

2011-03-26 Thread Bill Walton
l attention that I'd like help with and can sometimes find budget for. Let me know. Thanks, Bill On Sat, Mar 26, 2011 at 2:45 PM, steve ross wrote: > Any luck with this, Bill? I might be able to do it if the specifics are > right... > > Steve Ross > > > On Feb 28, 2011

Re: [Rails] Re: production server on passenger - showing all items in public folder

2011-03-21 Thread Bill Walton
Hi Jason, On Mon, Mar 21, 2011 at 10:17 AM, jason white wrote: > the load module is on one line > > i'm assuming that Passenger is loading, but not 100% sure how to > check. How can I pull up the log files? Easiest way to see if Passenger is running is ps -eaf You should see a couple of lines i

Re: [Rails] obfuscating sensitive data

2011-03-07 Thread Bill Walton
On Mon, Mar 7, 2011 at 12:44 PM, Fearless Fool wrote: > In our app, users give us sensitive information (credentials for > logging into a third party site).  At some point, we need those > credentials in cleartext in order to access the third party site, but > while they're in our database, we wan

Re: [Rails] redesigning a php app

2011-03-01 Thread Bill Walton
Oops. Continuing... On Tue, Mar 1, 2011 at 6:08 PM, Bill Walton wrote: > Hi Kenneth, > > On Tue, Mar 1, 2011 at 5:48 PM, Kenneth Vogt wrote: >> I am redesigning a php app in RoR. I am brand new to both Ruby and >> Rails. There is a front end to the app with th

Re: [Rails] redesigning a php app

2011-03-01 Thread Bill Walton
Hi Kenneth, On Tue, Mar 1, 2011 at 5:48 PM, Kenneth Vogt wrote: > I am redesigning a php app in RoR. I am brand new to both Ruby and > Rails. There is a front end to the app with the typical MVC kind of > interactions between end users and a database. There is also backend > processing that happe

Re: [Rails] Call Rest webservice in Ruby on Rails

2011-02-28 Thread Bill Walton
I use the Ruby Net::HTTP library to construct requests. Best regards, Bill On Mon, Feb 28, 2011 at 10:03 AM, gs84 wrote: > Hi every body, > > I use rest web service in my rails application for user's > authentication (user creation, login, ...) > Can someone explain me, how can i call a REST Web

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

2011-02-28 Thread Bill Walton
I have a short-term contract position opening for a technical writer. The position is telecommute and is probably a week to 2 weeks worth of work at full time. Part-time can be accommodated. Pay rate is negotiable. If you're experienced and interested, please contact me at bill at shopkeep dot c

Re: [Rails] validates_format_of :phone with => /^\([0-9]{3}\)[-. ]?[0-9]{3}[-. ]?[0-9]{4}|^[0-9]{3}[-. ]?[0-9]{3}[-. ]?[0-9]{4}$/

2011-02-18 Thread Bill Walton
Hi Victor, On Fri, Feb 18, 2011 at 7:03 AM, Victor S wrote: > To be a bit more clear about how I see the problem: as I said > earlier, http://www.rubular.com/  validates the correctness of the > expression, I've tried similar expressions in JS parsers, .NET parsers, > Python parsers, they all pas

Re: [Rails] Handling InvalidAuthenticityToken from bots

2011-02-17 Thread Bill Walton
HI Paul, On Thu, Feb 17, 2011 at 9:01 AM, paul wrote: > I'm using exception_notifier to get an email when a 500 error occurs > in production. Lately I'm seeing a lot of nonsensical POSTs show up > that cause an InvalidAuthenticityToken error. All the fields contain > random characters. (For insta

Re: [Rails] rails hoster recommendation

2011-02-04 Thread Bill Walton
You might want to take a look at using Amazon Web Services' EC2 and/or S3. Best regards, Bill On Fri, Feb 4, 2011 at 3:10 PM, frankblizzard wrote: > hi, > > i work in a small web development company and we just finished some > first applications using rails, before it was php all the way. > now

[Rails] jQuery vs Prototype re: Rails' helpers

2011-01-06 Thread Bill Walton
I'm considering switching from Prototype to jQuery but wonder... do the Rails helper methods like form_remote_tag and button_to_remote work with jQuery 'out of the box' ? I've got 2 apps I'd need to convert: one on 2.1.1 and the other on 2.3.2 TIA, Bill -- You received this message because you

Re: [Rails] background jobs , comparison esp for sending emails

2010-12-12 Thread Bill Walton
I'm using Background Job to send emails with the same objective. It's working well., HTH, Bill On Sun, Dec 12, 2010 at 8:50 AM, tramuntanal wrote: > You can follow engine yard > recomendations: http://www.engineyard.com/products/technology/stack > explore: http://github.com/ezmobius/nanite > or

Re: [Rails] Re: Moving View Logic into Controller

2010-11-24 Thread Bill Walton
On Wed, Nov 24, 2010 at 2:05 PM, Andrew Davis wrote: > Bill, that doesn't seem to be working. It seemed to be at first until I > tried to do more with the application. It's working just fine. The error message is telling you that @all_task_orders is nil. You just have to figure out why. The fa

Re: [Rails] Re: Moving View Logic into Controller

2010-11-24 Thread Bill Walton
On Wed, Nov 24, 2010 at 1:03 PM, Andrew Davis wrote: > Thank you very much Bill for your assistance, it is greatly appreciated > :) You're welcome, Andrew. Welcome to the Rails community. Best regards, Bill -- You received this message because you are subscribed to the Google Groups "Ruby on

Re: [Rails] Re: Moving View Logic into Controller

2010-11-24 Thread Bill Walton
On Wed, Nov 24, 2010 at 12:35 PM, Andrew Davis wrote: > Since I'm still learning, here is my attempt, is this what you are > trying to say? > > http://pastie.org/private/hiqrzql2zb4qv5gr1drpa > > I think I understand what you're saying, just not sure if I'm doing that > correctly. Yes. That's it

Re: [Rails] Moving View Logic into Controller

2010-11-24 Thread Bill Walton
Hi Andrew, On Wed, Nov 24, 2010 at 11:59 AM, Andrew Davis wrote: > Hello, > > Rails Best Practices is telling me to move some code from one of my > helper views into the controller. I was hoping to get some assistance as > I'm unsure how to do this and still have the application work. > > The hel

Re: [Rails] RJS Page Object

2010-11-23 Thread Bill Walton
Hi Kevin, On Tue, Nov 23, 2010 at 2:27 PM, kevin lee wrote: > I am struggling to understand and find resource to learn what parameter, > if that is the right word, can be inside the brackets in the page > statement for visual effect, i.e. The id of a DOM element. And remember that id must be un

Re: [Rails] Need help writing about Rails in magazine article

2010-11-06 Thread Bill Walton
Hi Tony, On Sat, Nov 6, 2010 at 6:33 AM, Tony Maserati wrote: > Hi. I'm trying to write about Rails for this magazine article. How > does it look so far? I'm trying to explain it to the average man - NOT > the developer. > > "Rails is a system which drastically simplifies web applications - by >

Re: [Rails] Log shifting error

2010-11-01 Thread Bill Walton
On Mon, Nov 1, 2010 at 7:32 AM, Peter Hickman wrote: > I'm pretty sure that our server are running local time and not UTC > (which would be a sure fix - I think). Ok. Thanks. > Not really sure that I would feel confident changing to UTC for nearly a dozen > servers located on two continents. Y

Re: [Rails] Log shifting error

2010-11-01 Thread Bill Walton
Hi Peter, On Mon, Nov 1, 2010 at 6:43 AM, Peter Hickman wrote: > Once again, here in the UK, we have had our switch back from summer > time saving and once again various applications failed for things like > > /usr/local/lib/ruby/1.8/logger.rb:501:in `write': Shifting failed. > '/.../log/poll_spo

Re: [Rails] Writing a Report on Ruby on Rails - Could anyone provide any insight

2010-10-14 Thread Bill Walton
Hi Josh, On Thu, Oct 14, 2010 at 6:55 AM, Josh Nathan wrote: > We have been ask about how Ruby on Rails could be intergrated into a 3- > tier architecure for produce a single intergrated source of student > data and information. It would included both adminstrative and public > records etc. Who

Re: [Rails] Nested form, perhaps?

2010-10-14 Thread Bill Walton
Hi Walter, On Thu, Oct 14, 2010 at 7:46 AM, Walter Lee Davis wrote: > I have a general design question, and haven't written any code for this > feature yet. I'm setting up a control panel for a sort of team/content > management system. A new project needs a team to work on it. The project has > b

Re: [Rails] Re: Need advice on controller / view

2010-10-11 Thread Bill Walton
Hi Erol, On Mon, Oct 11, 2010 at 10:45 AM, Erol Fornoles wrote: Your routing suggestion is good, however this > �...@artist = Artist.find(params[:artist_id]) will throw an exception if params[:artist_id] is not supplied. You could avoid that using Artist.find_by_id which should return nil rath

Re: [Rails] Re: Need advice on controller / view

2010-10-11 Thread Bill Walton
Hi Christian, On Mon, Oct 11, 2010 at 10:33 AM, Christian Fazzini wrote: > I was also thinking. Both "actions" should still call artists#index. > In artist#index, I'll have an if condition that checks which template/ > view to render. > > Is this a sensible approach? > > On Oct 11, 11:29 pm, Chri

Re: [Rails] ruby on rails programmer/developer

2010-10-07 Thread Bill Walton
On Thu, Oct 7, 2010 at 8:59 AM, Jonathan Dalton wrote: > thanks alot Bill You're welcome. And best of luck with your new venture! Bill -- 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] ruby on rails programmer/developer

2010-10-07 Thread Bill Walton
Hi Jon, On Thu, Oct 7, 2010 at 7:52 AM, Revolution Man wrote: > I have acquired a new online web company that was programmed in Ruby > on Rails and I am having a very difficult time finding anyone who > writes or works with this language to fix some minor issues and add > some major features.  I

Re: [Rails] Cronjob in Rails?

2010-10-04 Thread Bill Walton
Hi Rodrigo, Why don't you just use cron? Bill On Mon, Oct 4, 2010 at 1:22 PM, rodrigo3n wrote: > Hello everyone, I have to develop a cronjob in my app, it should run > automatically every 2 hours, is there a way of doing it simply > creating a rake task? I don' t know how could I set the interv

Re: [Rails] Re: [JOBS] Calling all Alpha Males with Ruby on Rails!

2010-09-25 Thread Bill Walton
Hi Kathleen, On Sat, Sep 25, 2010 at 11:22 AM, Kathleen Griffiths wrote: > Well, maybe I am wrong, Nah. By definition Alpha Females don't need defending. Alpha Males know that. Betas, not so much ;-). Best regards, Bill -- You received this message because you are subscribed to the Google

Re: [Rails] Re: Need an online payment system - suggestions required

2010-09-11 Thread Bill Walton
Hi, On Sat, Sep 11, 2010 at 3:22 AM, tonypm wrote: > > > On Sep 6, 3:52 am, Christian Fazzini > wrote: >> Hello all, >> >> We are about to launch our site. One of the features that is missing >> at the moment is a way for users to fill in their credit card details >> and click send to purchase o

Re: [Rails] Re: Whats a good way to avoid nil lookup errors

2010-09-05 Thread Bill Walton
Hi Christian On Sun, Sep 5, 2010 at 9:38 AM, Christian Fazzini wrote: > So this would be the convention right? not by using rescue_from. Is > this right? Yes. When possible, avoid begin-rescue by using Ruby / Rails to return a value you can handle within the normal course of your application lo

Re: [Rails] find created_at in local time

2010-09-02 Thread Bill Walton
Hi Sven, On Thu, Sep 2, 2010 at 1:13 AM, Sven Koesling wrote: > > Can You tell me what would be the correct solution to translate? > In addition to Chris' recommendations, you should check out the Rails ActiveSupport::CoreExtensions helpers like .beginning_of_day and .end_of_day methods which,

Re: [Rails] Re: Multipart email - HTML & document files

2010-08-31 Thread Bill Walton
Hi, On Tue, Aug 31, 2010 at 5:34 AM, Pale Horse wrote: > Pale Horse wrote: >> >> What I want, and can't seem to achieve, is to send an html email with an >> attachment. As it stands, I can do one or the other and aren't sure how >> to get both to work. http://api.rubyonrails.org/classes/ActionMa

Re: [Rails] Re: tag in HTML 5 (was Re: Re: assert_select for textvalue)

2010-08-30 Thread Bill Walton
On Mon, Aug 30, 2010 at 2:19 PM, Robert Walker wrote: > Marnen Laibow-Koser wrote: >> Bill Walton wrote: >>> On Mon, Aug 30, 2010 at 11:24 AM, Greg Donald wrote: >>>> On Mon, Aug 30, 2010 at 11:18 AM, Marnen Laibow-Koser >>>> wrote: >>>>&

Re: [Rails] tag in HTML 5 (was Re: Re: assert_select for textvalue)

2010-08-30 Thread Bill Walton
On Mon, Aug 30, 2010 at 11:24 AM, Greg Donald wrote: > On Mon, Aug 30, 2010 at 11:18 AM, Marnen Laibow-Koser > wrote: >> I didn't say it was invalid HTML.  I said it was *bad practice*. > > Yeah, that's why it's in the spec, 'cause no one should use it. > > /rolls eyes +1. If only marnen were i

Re: [Rails] Re: Automatically create one child record when parent record is initially created

2010-08-29 Thread Bill Walton
On Sun, Aug 29, 2010 at 12:34 PM, Chris wrote: > How would I handle a failure in that second piece?  Can I put it in > transaction and roll it back? Probabl, though you'd have to throw an exception for a transaction to be effective. IIRC, Rails3 has support for creating associated records built

Re: [Rails] Automatically create one child record when parent record is initially created

2010-08-29 Thread Bill Walton
Hi Chris, On Sun, Aug 29, 2010 at 12:24 PM, Chris wrote: > Sorry for the newbie question in advance...  I've got three models, a > user, site and user_site model.  A site can have many users and a user > can have many sites.  The relationship between these two is stored in > user_site. In my mode

Re: [Rails] Re: Looking for a place to post an add

2010-08-28 Thread Bill Walton
Hi Pepe, On Sat, Aug 28, 2010 at 3:28 PM, Pepe Sanchez wrote: > Thank you Bill, > > I guest I can reformulate my question asking about what url in the web > will you browse to look for a job to redesign/recreate a web site. > Other than craigslist.org that has a section "gigs","computers" for thi

  1   2   3   4   5   6   >