[Rails] Re: Ruby interpreter error in Windows Vista

2009-10-26 Thread Schalk Neethling
Hi all, I completely removed MySQL 5.1, reconfigured the 5.0 instance and the copied the libmysql.dll to ruby/bin and everything is working! Schalk Volume4 wrote: Hi there everyone, I have had a stable dev environment for some time now, well until my laptop was stolen :( I am in the

[Rails] Re: gem twitter-0.6.15, I need twitter-0.6.11

2009-08-25 Thread Schalk Neethling
+1 from me. Is this the defacto Twitter gem for Rails by the way? On Tue, Aug 25, 2009 at 8:03 AM, dmpeters63 dmpeter...@gmail.com wrote: Hi, I did sudo gem install twitter and I installed twitter-0.6.15 but my app wont run with 0.6.15. I need twitter-0.6.11 to run my app. Does anyone

[Rails] Re: Problems upgrading from 2.2.2 to 2.3.2 - uninitialized constant ActionController::Failsafe (Nam

2009-04-19 Thread Schalk Neethling
Hey Fernando, You should find this useful: http://giantrobots.thoughtbot.com/2009/4/15/rails-2-3-2-upgrade-gotchas Schalk Fernando Perez wrote: rename application.rb to application_controller.eb, and next time read the changelog. --~--~-~--~~~---~--~~ You

[Rails] Re: Facing a problem with rails version

2009-04-17 Thread Schalk Neethling
Hi Charanya, Are you freezing your apps before deploying them? Adding the appropriate version in your environment.rb is good but, you also need to freeze your apps so it deploys with it's version of Rails. Very simple to do, just use the Rake command and add the version you want to freeze to.

[Rails] Re: how to call javascript function in text_field_tag

2009-04-17 Thread Schalk Neethling
Hi Charanya, Or try using unobtrusive JavaScript by giving the field a unique id and then hooking up the action to that id. With jQuery it is very simple. To get the field just use: $('#uniqueid') and then you can chain any function to the element. HTH, Schalk Charanya Nagarajan wrote:

[Rails] Re: Rails routes question

2009-04-06 Thread Schalk Neethling
Hi there, I have article display set-up on my side as follows: map.article 'article/show/:permalink', :controller = 'article', :action = 'show' So you might be looking for something like this: map.posts '/posts/:user_id', :controller = 'posts', :action = 'show' HTH, Schalk Skaurus wrote:

[Rails] OpenID relative_url_root problems

2009-04-05 Thread Schalk Neethling
Hi there, I am trying to get OpenID authentication working and for the most part seems to have gone fine except, when authentication I keep getting: undefined method `relative_url_root' for ActionController::Base:Class I am testing from my local machine on Windows Vista using Mongrel. Any

[Rails] Re: Sending email

2009-04-05 Thread Schalk Neethling
Hi there, Setting that has always worked for me without fail is: config.action_mailer.raise_delivery_errors = true config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { :address = mail.yourdomain.com, :port = 25, :domain = yourdomain.com }

[Rails] Re: conditional count mysql query.

2009-04-05 Thread Schalk Neethling
Hi there Morgan, Something such as the following should do the trick: Article.count(:conditions = status = 'active') HTH, Schalk Morgan Morgan wrote: so i have a database filled with stats and i need to return a number from those stats for processing. how would i go about counting how many

[Rails] RE: OpenID relative_url_root problems

2009-04-05 Thread Schalk Neethling
If anyone experiences the problem I described below, please see the ticket here: https://rails.lighthouseapp.com/projects/8995/tickets/34-issues-with-forgery-protection-and-rails-21-relative_url_root And apply the patch here:

[Rails] Re: Sending email

2009-04-05 Thread Schalk Neethling
this: config.action_mailer.raise_delivery_errors = true config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { :address = localhost, :port = 25 } On Apr 5, 6:00 pm, Schalk Neethling volume4.sch...@gmail.com wrote: Hi there, Setting that has always worked for me without

[Rails] Possible Rails Related Open Source Project

2009-01-26 Thread Schalk Neethling
-- Did not make it to the list the first time it seems. Hi there everyone, I was wondering, is there anyone on this list that would be interested in working on an open source project to create a solution for generating website thumbnails in Rails? If there is any interested parties please let

[Rails] Possible Open Source Project

2009-01-25 Thread Schalk Neethling
Hi there everyone, I was wondering, is there anyone on this list that would be interested in working on an open source project to create a solution for generating website thumbnails in Rails? If there is any interested parties please let me know, Schalk

[Rails] Remote browser screen capture with Rials?

2009-01-18 Thread Schalk Neethling
Hi everyone, Does anyone know of a solution that will work with Rails that can capture remote screen shots of website a.k.a Magnolia, DZone etc? Thanks, Schalk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby

[Rails] Re: Remote browser screen capture with Rials?

2009-01-18 Thread Schalk Neethling
, Schalk Phlip wrote: Schalk Neethling wrote: Hi everyone, Does anyone know of a solution that will work with Rails that can capture remote screen shots of website a.k.a Magnolia, DZone etc? I would use Curl, Wget, Rio, or Net::HTTP to pull in the page (and its dependencies), then I

[Rails] Re: Remote browser screen capture with Rials?

2009-01-18 Thread Schalk Neethling
Hi Philip, I am guessing it must be the mozilla engine. I saw another one that uses webkit but it seems that the server needs to run the Mac OS. Regards, Schalk Phlip wrote: Schalk Neethling wrote: Hi there Philip, Thanks for the info. These looks promising: http://ruby-gnome2

[Rails] Re: What version of rails am I running?

2009-01-18 Thread Schalk Neethling
Hi there Kedar, Try script/about or, alternatively you can do a gem list. If you have only one version of rails installed gem list will indicate this. HTH, Schalk Kedar Mhaswade wrote: Frederick Cheung wrote: On 19 Jan 2009, at 00:24, Kedar Mhaswade wrote: In what way does it fail ? That

[Rails] Strange helper error

2008-12-06 Thread Schalk Neethling
Hey everyone, I have a controller called CMSController and then a helper called cms_helper.rb. When trying to access my application I get the following: C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:249:in `load_missing_constant' Expected

[Rails] Re: Strange helper error

2008-12-06 Thread Schalk Neethling
Hi there, Yip, that is exactly what it contains. Should every controller have an associated model? Thanks, Schalk Jej wrote: Hi, Your empty cms_helper.rb helper should contains module CmsHelper end Is it the case? Jej --~--~-~--~~~---~--~~

[Rails] Re: Strange helper error

2008-12-06 Thread Schalk Neethling
Hi there Phlip, Changing to Cms as apposed to CMS did the trick, thanks! Regards, Schalk Phlip wrote: Schalk Neethling wrote: Expected C:/DEVELOPMENT/satechevents/app/helpers/cms_helper.rb to define CmsHelper In general, whenever that happens, spot-check the file with ruby app

[Rails] Re: Problems installing mysql gem in Windows Vista

2008-11-27 Thread Schalk Neethling
Hey Matthew, Sorry I cannot provide you with an answer but, I basically decided to go back to 2.0.2 as there seems to be a few shortcomings with 2.1.2 and 2.2.2. Regards, Schalk Matthew Phillips wrote: I'm having similar problems. I also get the NULL pointer given error when I try to go

[Rails] Re: Problems installing mysql gem in Windows Vista

2008-11-25 Thread Schalk Neethling
Hey All, Executing: gem install mysql --no-ri --no-rdoc tells me that it installed one gem without any errors. However looking at the folder inside InstantRails, something seems missing. There is no lib for example. Also, a simple line like this: @content =

[Rails] Re: Rakismet revisited :(

2008-11-24 Thread Schalk Neethling
No output, no error, no installation. Is there something one needs to do after installing the git plugin? Thanks, Schalk Schalk Neethling wrote: hehehehe, no I don't. Frederick Cheung wrote: There's an obvious question: do you have git installed ? What happens if you just run git from

[Rails] Re: Rakismet revisited :(

2008-11-24 Thread Schalk Neethling
Ok, I see. I have to install Git itself as well as the rails plugin alone will not do the trick. Doing that now. Schalk Neethling wrote: Ok, I now installed git using: gem install git-rails Successfully installed fattr-1.0.3 Successfully installed arrayfields-4.6.0 Successfully

[Rails] Re: Rakismet revisited :(

2008-11-23 Thread Schalk Neethling
to plugin to see if you can get more information on what's happening. Rick On Nov 23, 2:56 am, Schalk Neethling [EMAIL PROTECTED] wrote: Hey all, Ok it seems that I got my one app upgraded to 2.1.2 successfully. Yeah! Now, when I try to install the Rakismet plugin I get the following

[Rails] rake rails:update

2008-11-23 Thread Schalk Neethling
Hey all, Are you supposed to get some type of feedback when running the rake rails:update task from a rails shell? And on that subject, I installed Rails 2.2.2 and then ran the the above command, got no feedback and nothing changed. Now when I create a new project I find some new files:

[Rails] Problem upgrading from Rails 2.0.2 to 2.2.2

2008-11-22 Thread Schalk Neethling
Hey all, I just upgraded a very simple rails based website from Rails 2.0.2 to 2.2.2. When I started up Mongrel however, I got the following error: ** Starting Rails with development environment... ExitingC:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:530:in

[Rails] Re: Problem upgrading from Rails 2.0.2 to 2.2.2

2008-11-22 Thread Schalk Neethling
not fix it or, am I misunderstanding what exactly the command does? Thanks, Schalk Schalk Neethling wrote: Hey all, I just upgraded a very simple rails based website from Rails 2.0.2 to 2.2.2. When I started up Mongrel however, I got the following error: ** Starting Rails with development

[Rails] Upgrade guide for 2.0.2 to 2.2.2

2008-11-22 Thread Schalk Neethling
Hey all, I believe I have upgraded my Rails version from 2.0.2 to 2.2.2 ;) However, I am experiencing some problems with an app that was built on 2.0.2. Can anyone suggest a resource where I can learn more about how to properly upgrade from 2.0.2 to 2.2.2 I have read some of the what has

[Rails] Re: Updating Rails in Aptana RadRails

2008-11-21 Thread Schalk Neethling
Thanks James. Will join up there. James Mitchell wrote: You will probably get a quicker answer if you ask on the Aptana RadRails mailing list. -- James Mitchell On Fri, Nov 21, 2008 at 4:31 PM, Schalk Neethling [EMAIL PROTECTED] wrote: Hey all, Rephrasing my previous question

[Rails] Re: Upgrading Rails With InstantRails

2008-11-21 Thread Schalk Neethling
Hi all, thanks for the info. One thing though, from where in the InstantRials directory structure should I run these commands? Does it make a difference or can I simply run it from the root directory of IR? Thanks again, Schalk Norm wrote: Jose vicente Ribera pellicer wrote: Schalk

[Rails] Updating Rails in Aptana RadRails

2008-11-21 Thread Schalk Neethling
Hey all, Rephrasing my previous question a little. How do I update the current Rails version when using Aptana RadRails as the IDE? Thanks, Schalk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails:

[Rails] Upgrading Rails With InstantRails

2008-11-20 Thread Schalk Neethling
Hey all, How do I upgrade the version of rails running inside InstantRails? Thanks, Schalk --~--~-~--~~~---~--~~ 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: Akismet Rails Plugin

2008-11-19 Thread Schalk Neethling
Ah, thanks Frederick. I am on Rails 2.0.2, probably time to upgrade ;) Frederick Cheung wrote: On Nov 18, 4:12 pm, Schalk Neethling [EMAIL PROTECTED] wrote: Hi all, I am trying to get Akismet installed on a RoR app. When trying to install Rakismet using: script/plugin install git

[Rails] Akismet Rails Plugin

2008-11-18 Thread Schalk Neethling
Hi all, I am trying to get Akismet installed on a RoR app. When trying to install Rakismet using: script/plugin install git://github.com/jfrench/rakismet I always get, plugin not found. Does anyone know where I can get this from or an alternate plugin? Thanks, Schalk

[Rails] Re: Good Articles/Blogs Explaing Rest with Rails Please..

2008-11-01 Thread Schalk Neethling
Hi there Fernando, Have a look here: http://css.dzone.com/news/rest-with-rails-part-1 http://css.dzone.com/news/rest-with-rails-part-2-serving http://css.dzone.com/news/rest-with-rails-part-iii-using Regards, Schalk Fernando Perez wrote: The best resource to learn REST in Rails is from a

[Rails] Rakismet plugin

2008-10-26 Thread Schalk Neethling
Hi there everyone, Does anyone know if there is a different location for the Rakismet plugin? When I run: script/plugin install git://github.com/jfrench/rakismet I get a message stating that the plugin could not be found. Thanks, Schalk --~--~-~--~~~---~--~~

[Rails] Re: SQL OR in Rails

2008-10-21 Thread Schalk Neethling
, :conditions = [country=? OR country='International', LOCALE]) Jan On 21 okt, 12:50, Schalk Neethling [EMAIL PROTECTED] wrote: Hi there everyone, How does one set-up a SQL OR query in Rails. I have the following SQL query: select state, state_abbr, country from states where country

[Rails] Re: Adding an id to form_tag

2008-10-15 Thread Schalk Neethling
Thanks Frederick. Frederick Cheung wrote: On 15 Oct 2008, at 12:56, Schalk Neethling wrote: Hi all, When using form_for it is easy to add an id to the form using :html = {:id = 'someid'} However, how would one accomplish the same when using the form_tag ? pretty much the same

[Rails] Adding an id to form_tag

2008-10-15 Thread Schalk Neethling
Hi all, When using form_for it is easy to add an id to the form using :html = {:id = 'someid'} However, how would one accomplish the same when using the form_tag ? Thank you in advance, Schalk --~--~-~--~~~---~--~~ You received this message because you are

[Rails] Re: Recaptcha (or other captchas)

2008-10-03 Thread Schalk Neethling
I have implemented Recaptcha on the registration page of this site: http://www.satechevents.co.za/account/register I am using the gem here: http://www.loonsoft.com/recaptcha/ Schalk Neil Cauldwell wrote: Neil Cauldwell wrote: Does anyone have any suggestions for a best practice

[Rails] Rails looking for development db in production

2008-10-02 Thread Schalk Neethling
Hi there everyone, On my production server I start the mongrel server as follows: mongrel_rails start -e production -a 127.0.0.1 -p 3001 -d However when going to the domain I get the following error: #42000Unknown database 'satechevents_development' Why is rails looking for the development

[Rails] Re: Rails looking for development db in production

2008-10-02 Thread Schalk Neethling
Thanks Fred, I will look into this. How can I ensure that all instances of mongrel is stopped? Schalk Frederick Cheung wrote: On 2 Oct 2008, at 15:43, Schalk Neethling wrote: Hi there everyone, On my production server I start the mongrel server as follows: mongrel_rails start -e