Re: [Rails] [JOBS] Ruby on Rails developer - Remote OK

2020-01-06 Thread Kevin Kariuki
Hi; I am interested in the position. On Tue, Jan 7, 2020 at 12:40 AM Emanuele Tozzato wrote: > >- AINZ Corp. is a boutique software development, R and consultancy >company focused exclusively on software (LIMS) for laboratories that engage >in cannabis testing; >- We are looking

[Rails] NameError (uninitialized constant Blacklight::Solr::Document::Marc Did you mean? Blacklight::Marc):

2019-12-18 Thread KEVIN WAMUNYIMA
keep running into this error when i run my rails server... any ideas -- _ _ _CONFIDENTIAL NOTICE: This message (and its attachments) may contain confidential information. Any unauthorized use or disclosure is prohibited. If you have received this communication in error, please notify us

[Rails] [JOBS] Site Reliability Engineer - Remote

2019-03-09 Thread kevin
[image: Notch8_Color.png] Job Opening: Site Reliability Engineer / DevOps Developer Notch8 Web and Mobile Application Developers Notch8 is seeking a DevOps Developer to join our team in downtown San Diego. We are looking for a talented developer to maintain our sites during off hours,

[Rails] #run_callbacks(:commit) is not sparking `after_create_commit`

2019-01-25 Thread Kevin Musiorski
Not sure if I'm doing something wrong but here's the test: fit "receives callback" do expect(subject).to receive(:absentee_reservation_email) subject.run_callbacks(:commit) end it runs with: after_commit :absentee_reservation_email and fails with: after_create_commit

Re: [Rails] RoR for poor farmers in Africa

2018-11-13 Thread Kevin Elliott
the code quality level up (measurable by something like Code Climate, for example) and introduce some best practices. I love the cause, so happy to give back. You can find me here: https://www.linkedin.com/in/elliottkevin/ <https://www.linkedin.com/in/elliottkevin/> Best, Kevin Kevin E

[Rails] ActiveRecord + ODBC

2017-01-11 Thread Kevin Deisz
Hi everyone, Has anyone successfully used ActiveRecord with ODBC on Rails 4 or 5? I'm trying to upgrade a legacy system that currently uses a custom Adapter and am looking to get onto something more standard. Thanks! -- You received this message because you are subscribed to the Google

[Rails] ActiveSupport callbacks

2016-09-21 Thread Kevin Deisz
Hi everyone, I've been struggling with something for a while and was hoping someone who knows more about me than this would be able to help. I have this gist: https://gist.github.com/kddeisz/d975ef9a5e45a88bacb03e9f2c1fcf67. I'm attempting to build in generic callbacks that I can port into a

[Rails] [JOB] Sr Ruby on Rails Software Engineer Lexington, MA

2015-09-03 Thread Kevin Johnson
you see your code go live quickly. There is excellent opportunity for growth and exposure to Big Data analytics as well as full-stack development. Please apply directly at: http://tinyurl.com/pj2an2x Thanks, Kevin -- You received this message because you are subscribed to the Google Groups "

[Rails] Re: Mysql2::Error: This connection is still waiting for a result, try again once you have the result

2015-08-03 Thread Kevin Disneur
or unicorn. Did you manage to find an explanation? And maybe a solution? For the moment we have just restarted the application and everything is back to normal. Thanks, Kevin Le jeudi 20 novembre 2014 15:56:59 UTC, Jason Fleetwood-Boldt a écrit : Rails-talk, Last night I got a slew (around 2000

[Rails] Looking to hire a Senior Level Ruby Developer (Ownership offered)

2015-03-24 Thread Kevin Lyon
Kevin Lyon -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails

[Rails] Re: NoMethodError: undefined method `password_digest=

2014-12-07 Thread Kevin Roe
I am also learning nowHave you tried has_secure_password in the User model. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to

[Rails] RMagick Annotate - interline spacing and its relation with the font

2014-06-13 Thread Kevin Peterson
of RMagick as was entered by the user. Thanks, Kevin Peterson -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com

[Rails] JOB : French/American start-up recruits a Lead RoR/Fullstack Developer

2014-03-28 Thread Kevin Creusy
Hi, We are looking for talented developers for a job in France and who speak good english ;). If you feel interested here is the job description ;). http://railsjob.com/jobs/2654-Lead-Developer-RAILS-Full-stack Don't hesitate to contact us. Thanks! -- Posted via http://www.ruby-forum.com/.

[Rails] Error messages still don't escape angle brackets?

2014-02-26 Thread Kevin
to hack it to actually escape it, so I can see that it's contest:0x007fba833054e0 /contest:0x007fba833054e0 ? Seems so obvious, and yet here we are 4 versions in and it isn't done automatically, whine whine... Kevin -- You received this message because you are subscribed to the Google Groups

[Rails] Survey: Templating Engines and CSS Pre-processing in Rails

2013-07-08 Thread Kevin Bedell
If you have a moment to fill out this short survey on which templating engine and css preprocessor you are using (if any), I'm happy to send you copies of the results. Thanks! https://docs.google.com/forms/d/1VPeowjwAtzHvCPiIrZpRro96kU3hPa5Rn920Q1wQtW8/viewform -- You received this message

[Rails] Re: My first database model - would you look at it pls?

2012-10-25 Thread Kevin McCaughey
Thanks a lot guys! I really appreciate the help. I don't have 1000 users yet as I am out of work, but this system is something I was inspired by a work problem, and I hoping it gives me enough experience to maybe get a junior programming job once I am finished. I was a programmer some years

[Rails] Re: My first database model - would you look at it pls?

2012-10-25 Thread Kevin McCaughey
*Please excuse my bad typing in the previous post - just getting my first coffee of the morning before starting learning again and my brain is still asleep ;) -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on

[Rails] My first database model - would you look at it pls?

2012-10-24 Thread Kevin McCaughey
checks). Many thanks for any comments you have on this. It is my first time creating the model and I have already removed many-many by design in case someone is wondering why there are no many-many links. Kevin Attachments: http://www.ruby-forum.com/attachment/7826/Base_Classes.jpg -- Posted

[Rails] Re: A general question about railstutorial.org sessions helper methods

2012-10-24 Thread Kevin McCaughey
I am just about to finish chapter 7! So many times I have wished I could grab a chat with another person doing the tutorial, it's a lonely journey I found ;) -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails:

[Rails] Re: My first database model - would you look at it pls?

2012-10-24 Thread Kevin McCaughey
I assume you're using has_many meetings, through: attendees on the people, and has_many people, through: attendees on the meetings, right? I was wondering if I could do that - so thanks, I will :) And as Colin and Dave both pointed out, attendance does fit better than attendee. As for the

[Rails] Re: My first database model - would you look at it pls?

2012-10-24 Thread Kevin McCaughey
It's my first Rails database, and my first ever relational database for anything :) I have been reading up on it a lot ;) -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group,

[Rails] Re: My first database model - would you look at it pls?

2012-10-24 Thread Kevin McCaughey
Thanks Dave - I have put the new diagram up at: http://www.kevinmccaughey.org/relationships/relationships.html Is that what you meant? I am musing over it at the moment. Attachments: http://www.ruby-forum.com/attachment/7828/Base_Classes.jpg -- Posted via http://www.ruby-forum.com/. -- You

[Rails] Re: My first database model - would you look at it pls?

2012-10-24 Thread Kevin McCaughey
Thanks again Dave - I have attached the updated jpeg (I use cloudflare for my site so I think that is caching it ;) I am only at Chapter 7 of the Rails Tutorial (Michael Hartl's great site), but I think chapter 8 should teach me how to do the actual code for it! I been sort of making my own

[Rails] Re: My first database model - would you look at it pls?

2012-10-24 Thread Kevin McCaughey
Ooops forgot to attach image. Attachments: http://www.ruby-forum.com/attachment/7829/Base_Classes.jpg -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to

[Rails] Re: My first database model - would you look at it pls?

2012-10-24 Thread Kevin McCaughey
What I am wondering though is: if I have 1000 users with about 15 meetings each a week, will it be fast enough? I am running on just 1 linked at present using PostgreSQL. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups

[Rails] Developing A Better Curriculum for Learning Rails

2012-10-22 Thread Kevin M.
on these skills for Rails developers. I won't call out any of the above technologies, but we know some are not necessary for proficiency and others are critical. But we are very curious to the community input. Thanks Kevin kevin (at) codestreak (dot) com -- Posted via http://www.ruby-forum.com

[Rails] Rails test environment can't find capybara methods

2012-08-24 Thread Kevin Farst
I'm trying to include capybara into my RSpec integration tests. It seems to work fine with the Cucumber environment but for some reason it's giving me issues with the Test environment. Here are the steps I've followed: 1. Include capybara in the test group of my Gemfile 2. Included require

[Rails] Re: Confused about testing options for rails

2012-07-29 Thread Kevin McCaughey
has been taken way to far, and teachers need to cover the basics better before showing stuff. I actually am finding Obie Fernandez book much easier going than the others now. I picked it up from my pile in the corner last night, where I had been saving it as advanced. Regards, Kevin

[Rails] Confused about testing options for rails

2012-07-28 Thread Kevin McCaughey
are leaving, Capybara's fleeing, with flotsam and jetsam of cucumbers and (r)spectacles all around... It just isn't making sense and I cannot seem to pick out any logical thrust behind the choice of testing methodology. Many thanks, Kevin McCaughey -- Posted via http://www.ruby-forum.com

[Rails] Re: Confused about testing options for rails

2012-07-28 Thread Kevin McCaughey
Are Capybara and cucumber different to Rspec? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this

Re: [Rails] Does whenever gem work in Rails 3

2012-07-11 Thread Kevin Bedell
Agreed - Redis/Resque with 'resque_mailer' is your best bet for that app. https://github.com/zapnap/resque_mailer -kevin On Wed, Jul 11, 2012 at 6:14 AM, Tom Meinlschmidt to...@meinlschmidt.com wrote: use resque gem. it works like charm (rails3) tom On Jul 11, 2012, at 12:04 , paul h

Re: [Rails] hai friends i am fresher in rails and i want to know can i write application i ruby without scaffoldining plz post some links or any applications without using scffolding........

2012-06-26 Thread Kevin Bedell
: The Boston Ruby Group: http://bostonrb.org/ July's 'Project Night' - July 3rd at thoughtbot: http://guestlistapp.com/events/110586 I know there are some Ruby Groups near San Francisco that have similar monthly meetings/workshops. -Kevin Bedell -- You received this message because you

Re: [Rails] Creating an API key (many to many mapping), how would I go about it

2012-05-07 Thread Kevin Bedell
and it's not too bad once you've gotten devise installed and configured correctly. -Kevin On Mon, May 7, 2012 at 8:05 AM, Beau beautr...@gmail.com wrote: Hey guys. I'm still a super rails noob, and trying to figure this out in relation to learning how to write controllers/models and where stuff

[Rails] Re: plpgsql HEROKU

2012-05-02 Thread Kevin McCaughey
This sounds familiar - I think it's a bug and I am nearly sure that I saw something on it recently. Sorry I can't be more specific :( I think the reference was in Stack Overflow and there was a link there that took me to a pull request for a fix, but the fix was for something else as opposed

[Rails] Re: Can't mass-assign protected attributes even if I use attr_accessible

2012-05-01 Thread Kevin Gillieron
I found the solution ! :-) The problem was that I used acts_as_taggable_on_steroids plugin which does not work on Rails 3.2 ... Since Author is the only model which has a :name attribute, I thought that the problem came from Author ... but the problem was in the Tag model (which is in the

[Rails] Can't mass-assign protected attributes even if I use attr_accessible

2012-04-27 Thread Kevin Gillieron
Hi, I'm working on a Rails 3.2.2 application which has JSON APIs and I use a CLI client for inserting some data. It works fine except for the Author model. When I try to create a new post (Post belongs_to :author and Author has_many :posts) I get the following error : h1

Re: [Rails] Bluehost - Rails 3

2012-04-27 Thread Kevin Bedell
Forget blue host. Get an account on heroku and push it there. If you're going to be a rails developer you need to know how to use github and heroku. This is a good time for you to learn heroku. I believe it's free for a single small project. Sent from my iPhone On Apr 27, 2012, at 12:45

Re: [Rails] Re: Bluehost - Rails 3

2012-04-27 Thread Kevin Bedell
Even if you have free hosting on a lesser known service, paying even a small amount is still worth going to heroku. Rails developers need to understand how to do cloud deployment in general and Heroku is what most people are using. Here's a write up from one of the better rails consultancies in

Re: [Rails] Re: To developers of Rails: Feeble documentation - weakness of Ruby and the Ruby on Rails (2nd editi

2012-04-25 Thread Kevin Bedell
I mean seriously Sergey, complaining about the state of rails documentation while refusing to contribute to it makes you come across like an entitled little snit. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send

Re: [Rails] Re: To developers of Rails: Feeble documentation - weakness of Ruby and the Ruby on Rails (2nd editi

2012-04-25 Thread Kevin Bedell
According to ohloh.net, rails has about 250,000 lines of code, while Ruby recently eclipsed 1 million lines of code. http://www.ohloh.net/p/rails http://www.ohloh.net/p/ruby On Wed, Apr 25, 2012 at 9:28 AM, Greg Donald gdon...@gmail.com wrote: On Tue, Apr 24, 2012 at 4:10 PM, Robert

[Rails] Re: To developers of Rails: Feeble documentation - weakness of Ruby and the Ruby on Rails (2nd editi

2012-04-25 Thread Kevin McCaughey
Robert Walker wrote in post #1058190: If every method, of every class, were fully documented by the team building Rails then nothing would ever get done. This is the perenail excuse - It's too big, so we just won't bother. I have been learning for a while now, and my journey started with

Re: [Rails] Re: To developers of Rails: Feeble documentation - weakness of Ruby and the Ruby on Rails (2nd editi

2012-04-23 Thread Kevin Bedell
A more appropriate approach I believe would be to add what you believe are good comments to one of the files and submit a pull request. -kevin On Mon, Apr 23, 2012 at 10:14 AM, Sergey Ezhov li...@ruby-forum.com wrote: from forum Ruby: http://api.rubyonrails.org/ - disgusting documentation

Re: [Rails] Asset - Pipeline

2012-04-11 Thread Kevin Bedell
Here an example line from one of our scss files: background: image-url(email_icon.png) no-repeat 0px 4px; Try that? On Wed, Apr 11, 2012 at 3:22 PM, Sebastian H. li...@ruby-forum.com wrote: Hello guys, I tried to get an image-background working within my page, but I was wrong...

Re: [Rails] how to use cronjob

2012-04-10 Thread Kevin Bedell
A better approach I believe is to use redis/resque to queue the emails to be sent -- and then use resque-scheduler to schedule the jobs to run whenever you want them to run. There are a bunch of reasons why redis is a better approach to queuing work in general, so I'd look into this. What you

[Rails] Re: Rails Payment Gateway Solutions

2012-04-08 Thread Kevin McCaughey
Does anyone have any feedback on Stripe? Thanks for raising this, very useful. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to

[Rails] Properly Setting up Rails Associations for Favoriting Items

2012-03-04 Thread Kevin Pruett
I'm writing my first Rails app and I'm stuck at the database level. I have 2 models: User and Mission. They are connected very *unremarkably* like so: User has_many :missions, dependent: :destroy Mission belongs_to :user I would like other users to be able to interact with missions by either:

Re: [Rails] Re: How do I make a delete button that doesn't go to another page?

2012-02-24 Thread Kevin Bedell
Here's a good primer on how to do ajax calls using JQuery. These are the skills you need to do this kind of work. http://railscasts.com/episodes/136-jquery The only thing different is I'd recommend writing the javascript in coffeescript instead. -Kevin On Fri, Feb 24, 2012 at 4:44 PM, Dave

Re: [Rails] Experiences using Database.com with Ruby on Rails

2012-02-13 Thread Kevin Bedell
If you're boss can't articulate the benefits to you for why he (or she) wants you to do this -- and they're pushing you to undertake a technical solution that could make you're development more complex without understanding the impact of it - then they are an idiot. Please feel free to tell them I

Re: [Rails] Database level authentication

2012-01-31 Thread Kevin Bedell
I appreciate what you're trying to do. I've been a dba in the past and have built apps using database credentials in the past. But this is a mistake. They key to being successful with rails is to leave behind the ways you did things before and embrace 'the rails way'. ActiveRecord using a single

Re: [Rails] Is Rails on IIS dead?

2011-12-13 Thread Kevin Bedell
What is IIS? On Tue, Dec 13, 2011 at 12:16 PM, John Doe li...@ruby-forum.com wrote: Internet references are years out of date and links to downloads broken. Is Rails on IIS dead? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

Re: [Rails] Action Controller: Exception caught

2011-11-15 Thread kevin
You do not have title column in your database , try generate a migration to add the missing columns -- kevin Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Wednesday, November 16, 2011 at 11:12 AM, Scott Sewares wrote: Hello All, I am taking a programming class and I am

Re: [Rails] passing non-input values to db.

2011-11-03 Thread kevin
I think this could be done in user/create like @user.role = moderator if current_user.admin? -- kevin Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Thursday, November 3, 2011 at 5:09 PM, newrails user wrote: moderator -- You received this message because you are subscribed

[Rails] protected method in production environment

2011-11-03 Thread kevin
is a protected method. It works well in local development environment but raise an error that can not invoke protected method while i deployed in production. This is weird, so anybody know about this? We use pushsion_passenger and nginx in production. Kevin -- You received this message because

Re: [Rails] Passing arguments to BackgroundRB

2011-11-03 Thread kevin
. If you experence the same problem, i recommend you there is a plugin/gem that include after_commit callback, and make the async work after the db commit. -- kevin Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Thursday, November 3, 2011 at 5:58 PM, DanC wrote: I hope someone can

Re: [Rails] install

2011-10-31 Thread Kevin Bedell
https://github.com/thoughtbot/laptop This pointer takes you to a project with a couple of scripts that should setup what you need. It'sa polished and maintained set of scripts for installing ruby on rails on a mac. Best of luck! -kevin @kbedell On Mon, Oct 31, 2011 at 5:33 PM, BigC c

Re: [Rails] Ruby adoption statistics

2011-10-07 Thread Kevin Bedell
, redmine, capistrano, haml, and many others. (See http://www.ohloh.net/p?sort=usersq=language%3Aruby ) Anyway, this is just a quick scrape of some stats. There's much more if you dig around there and other places. Kevin Bedell -- Kevin Bedell Principal, Boston Agile Partners @kbedell -- You

[Rails] Re: (ActiveRecord) Why is there no belongs_to_many?

2011-09-22 Thread Kevin S.
David A. Black wrote in post #712598: Hi -- On Wed, 6 Aug 2008, Shawn .. wrote: The has/belongs semantics are, indeed, not always a perfect fit for the way things relate when we describe them in English. For example, I remember coming up with an example once where I ended up with a Club

Re: [Rails] Re: My mate did rake db:drop on producation , can any please help urgently

2011-09-14 Thread Kevin Bedell
Yeah - sorry but you're screwed. Hope the backup is in good shape. On Wed, Sep 14, 2011 at 7:46 AM, Tim Shaffer timshaf...@me.com wrote: Restore your database from a backup. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To view this

Re: [Rails] Re: question about a where condition

2011-09-12 Thread Kevin Bedell
) this may be a substantial difference. If there are a few hundred or less rows, it doesn't make that big of a difference. But in general, I'd say that an approach that limits what's brought back from the database is probably better. Kevin Bedell Boston Agile Partners @kbedell -- You received

[Rails] Problem in installing rails 3.1.0

2011-09-12 Thread kevin peter
Hi , Presently i am installing rails in my ubuntu system(Ubuntu 10.04.3 LTS) using following commad gem install rails -v =3.1.0 When i am trying to install desk@desk-pc:~$ gem install rails -v =3.1.0 Successfully installed rails-3.0.3 1 gem installed Installing ri documentation for

[Rails] Re: Problem in installing rails 3.1.0

2011-09-12 Thread kevin peter
Hi Zolzaya, Thank you for your reply. Presently I am using rvm only rvm list rvm rubies = ruby-1.9.2-p290 [ i386 ] ruby-1.8.6-p420 [ i386 ] ruby-1.8.7-p352 [ i386 ] Here I have rvm also latest version[rvm 1.8.3 ]. I am trying to instal using the ruby version (ruby-1.9.2-p290 [ i386

Re: [Rails] Re: EngineYard deploy - Vanilla Database

2011-09-12 Thread Kevin Bedell
(for example, role names or state codes) and loading sample data just used for testing *for example, fake test accounts). Hopefully it'll help. There's some sample code in the post. -Kevin On Mon, Sep 12, 2011 at 9:33 AM, paulo paul.a.taylo...@gmail.com wrote: Great - just what I was looking

[Rails] rails consultant available in Boston

2011-08-26 Thread Kevin Bedell
I have a project I'm coming off of on September 1st, anyone need help on a project? I'm in Boston, MA but work remotely a lot of the time for people in other places. -Kevin -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

[Rails] How to navigate between view using select

2011-08-18 Thread kevin ng'eno
Hi, im new to rails and I got a mind boggling issue. I have a select form populated with Institutes names e.g University of Yale. These records are obtained from the Institute ActiveRecord.The institutes table has a many to many relationships with the course table. My application should work

[Rails] Re: How to navigate between view using select

2011-08-18 Thread kevin ng'eno
Chirag Singhal wrote in post #1017338: There are few issue in this: Thanx alot Chirag, let me try out your hints . Will get back to you -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

[Rails] Need Ruby on Rails Developer

2011-08-16 Thread Kevin M Maxwell
difficult design decisions - Positive, delivery-focused attitude, and high productivity * Ability to manage your own projects and tasks, and keep several balls in the air at once SEO, web usability, and landing page optimization experience a plus Thanks Regards, Kevin M Maxwell

[Rails] Re: sqlite 3 error

2011-06-27 Thread Kevin
Hi, first you need to install sqlite3. In Ubuntu: sudo apt-get install libsqlite3-dev Second install the sqlite gem gem install sqlite3-ruby see here for example http://stackoverflow.com/questions/2305920/rails-3-can-not-find-sqlite3-ruby I am not sure if rails 3 works with ruby 1.8.7 but I

[Rails] Re: sqlite 3 error

2011-06-27 Thread Kevin
: On Mon, Jun 27, 2011 at 4:16 AM, Kevin def...@googlemail.com wrote: Hi, first you need to install sqlite3. In Ubuntu: sudo apt-get install libsqlite3-dev Second install the sqlite gem gem install sqlite3-ruby see here for example http://stackoverflow.com/questions/2305920/rails-3-can

[Rails] Re: class table inheritance

2011-06-09 Thread Kevin
I think your issues have to do with your use of the type column and it triggering rails STI magic. STI is assuming all columns are defined on the parent and will never attempt to loan column names from the child tables. I am investigating using native postgres inheritance for a project I'm working

Re: [Rails] Re: Creating common method in application ontroller

2011-06-04 Thread Kevin
Google seems to indicate that one may simply mixin (Is that the correct Ruby terminology.) parts of ActiveModel into any class as one sees fit. For example:http://yehudakatz.com/2010/01/10/activemodel-make-any-ruby-object-feel-like-activerecord/ If memory about the way inheritance works in

[Rails] Re: How to safely escape raw sql with connection.select_all

2011-06-03 Thread Kevin
Thanks for the suggestion I will try it and report back. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/YXZpYWczcnpPeHNK. To post to this group,

Re: [Rails] Re: Creating common method in application ontroller

2011-06-03 Thread Kevin
Out of curiosity what should one do if one wants to have a method inherited by all models? Does rails already have a file for adding methods to the model base class? Or do we just ram our methods into ActiveModel and call it a day? I have run into almost the opposite scenario as the thread

[Rails] Rails hates my recursive function

2011-05-24 Thread Kevin
I'm trying to create a function that will take input in the form a12345678 and output text in the form a12-34-5678 if and only if the input text is * not* in the form adam smith The goal is to allow my users to enter either names separated by a space, or the student id number into a single

[Rails] How to safely escape raw sql with connection.select_all

2011-05-24 Thread Kevin
I have a query I am mapping to a Struct that takes two parameters. What is the proper method for escaping the parameters to avoid sql injection issues with sqlite3, when using ActiveRecord::Base.connection.select_all? I have tried using ? but that does not seem to work at all I get an empty

[Rails] Best place to put methods containing raw sql code

2011-05-24 Thread Kevin
I'm porting a bunch of sql queries used to generate reports of various kinds. I have a report controller that has no model and will contain all the actions that display report results. Where should I stick my wrapper methods for these queries. I don't like having them stuck right in the

[Rails] Strange view problem

2011-05-23 Thread Kevin
I'm working with a Struct that I mapped from a raw sql query for a report. I finally get the search page to work and display my results, however the view when rendered not only displays the expected output; it also shows the Struct as it would look in the rails console! my view is as follows:

[Rails] Re: Strange view problem

2011-05-23 Thread Kevin
Removing the entire loop from the calling view seems to have solved the issue. Thanks everyone. @Jim I was trying to have the partial render on the same page that the search was being done on to see whether the output was different on that page. That code is such a dirty hack as it stands

[Rails] RedCloth not found

2011-05-14 Thread Kevin Ulrar
Hi, I'm learning RoR and I have a problem with RedCloth. I have installed it by gem install RedCloth and I have it in my path. But when I require it, it is not found. irb(main):001:0 require 'rubygems' = nil irb(main):002:0 require 'redcloth' LoadError: no such file to load -- redcloth from

[Rails] Re: RedCloth not found

2011-05-14 Thread Kevin Ulrar
By putting gem 'rubygems' gem 'redcloth' in my Gemfile ? If it is that, it makes my another error : Could not find gem 'redcloth (= 0, runtime)' in any of the gem sources listed in your Gemfile. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are

[Rails] Re: Fighting Rails RESTful Routes Conventions

2011-04-28 Thread Kevin Monceaux
well with one's preferences. That's the reason I moved on from Rails the last time I tried it. -- Kevin http://www.RawFedDogs.net http://www.WacoAgilityGroup.org Bruceville, TX What's the definition of a legacy system? One that works! Errare humanum est, ignoscere caninum. -- You received

[Rails] Re: Best Rails environment for Windows 7

2011-04-28 Thread Kevin Monceaux
for the best rails environment, not the one with the shallowest learning curve. -- Kevin http://www.RawFedDogs.net http://www.WacoAgilityGroup.org Bruceville, TX What's the definition of a legacy system? One that works! Errare humanum est, ignoscere caninum. -- You received this message because

Re: [Rails] Re: Fighting Rails RESTful Routes Conventions

2011-04-28 Thread Kevin Monceaux
, :path = Recipe match 'Recipes' = 'recipes#index', :as = :recipes, :via = :get I had tried using singular resources before but mistakenly typed resources instead of resource. -- Kevin http://www.RawFedDogs.net http://www.WacoAgilityGroup.org Bruceville, TX What's the definition

[Rails] Fighting Rails RESTful Routes Conventions

2011-04-27 Thread Kevin Monceaux
. -- Kevin http://www.RawFedDogs.net http://www.WacoAgilityGroup.org Bruceville, TX What's the definition of a legacy system? One that works! Errare humanum est, ignoscere caninum. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

Re: [Rails] Re: Fighting Rails RESTful Routes Conventions

2011-04-27 Thread Kevin Monceaux
, the case sensitivity issue isn't a big deal at all. Using my CamelCase preferences is as simple as: scope :path_names = { :new = New, :edit = Edit } do resources :movies, :path = Movies end -- Kevin http://www.RawFedDogs.net http://www.WacoAgilityGroup.org Bruceville, TX What's

Re: [Rails] Re: Fighting Rails RESTful Routes Conventions

2011-04-27 Thread Kevin Monceaux
On Wed, Apr 27, 2011 at 03:08:50PM -0500, Kevin Monceaux wrote: In that context, which of: /Recipes/Beef-Brisket /Recipe/Beef-Brisket After sending my last reply, I thought of another way of looking at the above URLs. Using slugs and Rails plural default, and my CamelCase preferences

[Rails] Implementing a tagging system in Rails

2011-04-22 Thread Kevin Pang
This is a copy/paste from my question over at StackOverflowhttp://stackoverflow.com/questions/5750963/implementing-a-tagging-system-in-railsso feel free to answer there if you want some reputation. I'm trying to implement a tagging system in a Rails app similar to the one StackOverflow uses

Re: [Rails] Implementing a tagging system in Rails

2011-04-22 Thread Kevin Pang
I don't think this is true. According to the Rails APIhttp://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html#M000645, this is what collection.delete does with a has_and_belongs_to_many association: Removes one or more objects from the collection by removing their

Re: [Rails] Implementing a tagging system in Rails

2011-04-22 Thread Kevin Pang
Just to be sure though, I've changed that line to be: tags.clear This seems cleaner anyways, and the Rails API explicitly states that calling this will not delete the objects themselves, only the association. -- You received this message because you are subscribed to the Google Groups Ruby

[Rails] Sinatra: can I return response AND post a callback?

2011-04-08 Thread Kevin Smith
Hi everyone, Using the wonderful Sinatra to create a RESTful Web service. What I want to do is: 1 receive a POST and return a JSON response. 2 after a short period send a POST to a URL provided in a callback param during 1 above So far I can receive the client's POST and eithr return a JSON

[Rails] Re: path vs. url

2011-03-06 Thread Kevin Tr
to have _url for all my navigation due to the one http map page, please, let me know. Kevin Madhav V. wrote in post #969656: How would it save headaches in case of https?. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups

Re: [Rails] Re: uninitialized constant ActiveSupport::Dependencies::Mutex

2011-03-03 Thread Kevin Owocki
Hi Fred, It does not help in my case. Kevin Owocki http://www.owocki.com co-founder lead developer at ignighter http://www.ignighter.com/ _ find me on twitter http://www.twitter.com/owocki, facebookhttp://www.facebook.com/kevinowocki, linkedin http

Re: [Rails] Re: uninitialized constant ActiveSupport::Dependencies::Mutex

2011-03-03 Thread Kevin Owocki
version, do 'gem install activesupport -v 2.3.8' (change 2.3.8 to required version) Kevin Owocki http://www.owocki.com co-founder lead developer at ignighter http://www.ignighter.com/ _ find me on twitter http://www.twitter.com/owocki, facebookhttp

[Rails] [HELP PLS] uninitialized constant ActiveSupport::Dependencies::Mutex

2011-03-02 Thread Kevin Owocki
(Final) []# ruby -v ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux] []# rails -v Rails 3.0.5 []# passenger -v Phusion Passenger version 3.0.4 []# gem -v 1.6.0 Kevin Owocki http://www.owocki.com co-founder lead developer at ignighter http://www.ignighter.com

[Rails] RJS Page Object

2010-11-23 Thread kevin lee
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. page[comment...@comment.id}].visual_effect :shake, :duration = 6.5 From what I have seen through web searches it

[Rails] Bulksms designed using ruby on rails

2010-08-07 Thread Indsms Kevin
we designed our webtool for sending bulk sms within india using ruby on rails. Dear All, Greetings from Indsms, We INDSMS being most trusted entity by our customers, are offering BULKSMS at quality routes with Best rates.We are providing shortcode and long code . To test our service , register

[Rails] Re: Rails application generator fails after installing version 3.beta4

2010-06-19 Thread Kevin Mcfadden
I just fixed this problem. I had ruby 1.9.2 preview 1, removed it, and installed preview 3. Everything worked fine afterward. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this

[Rails] Re: difference between belongs_to and references keyword?

2010-06-10 Thread Kevin Hastie
Kevin Hastie wrote: Kevin Hastie wrote: I guess what I really want is something like this: class Address ActiveRecord::Base belongs_to :addressable, :polymorphic = true end class Business ActiveRecord::Base has_one :address, :as = :addressable end class School ActiveRecord

[Rails] difference between belongs_to and references keyword?

2010-06-03 Thread Kevin Hastie
First, I am very new to ruby and rails. Searching for references is really tough, and so I've finally come here. I'm trying to create a scaffold. Let's say a Business and a School both can have a single Address (not shared). In a different case, an Offer has an OfferType (with just a type_id

[Rails] Re: difference between belongs_to and references keyword?

2010-06-03 Thread Kevin Hastie
Kevin Hastie wrote: a) Am I doing this right? Apparently not. Weird. Is it because I didn't do polymorphic anywhere that Address now has a business_id, a credit_card_id and a user_id? Obviously this is no good - I'd prefer the Business table to have an address_id, etc So: e) Did I do

[Rails] Re: difference between belongs_to and references keyword?

2010-06-03 Thread Kevin Hastie
Kevin Hastie wrote: I guess what I really want is something like this: class Address ActiveRecord::Base belongs_to :addressable, :polymorphic = true end class Business ActiveRecord::Base has_one :address, :as = :addressable end class School ActiveRecord::Base has_one :address

  1   2   >