[Rails] Re: How to remove special characters? (ie. &)

2009-02-09 Thread stretch
Yachtman, Check out http://www.ruby-doc.org/core-1.9/classes/CGI.html#M000527 (It worked with 2.2 also) >> ugly = CGI::escapeHTML('') => "
" >> print CGI::unescapeElement(ugly, "A", "IMG")
=> nil >> print CGI::unescapeElement(ugly, "A", "IMG", "BR") => nil There might

[Rails] Re: Help with Scaffolding deprecation on Rails 2.2.2

2009-02-09 Thread stretch
Fred, perhaps creating the app with the version you need will help avoid this and other issues. You can do it by specifying the version enclosed in underscores before passing the name of the new app: rails _1.2.3_ mynewapp Al On Feb 9, 3:56 pm, Frederick Cheung wrote: > On Feb 9, 11:28 pm

[Rails] Re: Server won't start with ActiveMerchant

2009-02-09 Thread stretch
Lee, Do you need to have a require statement in environment.rb? require 'active_merchant' Al On Feb 9, 4:19 pm, Lee Munroe wrote: > Hi, > > Everything was working fine until I went to use ActiveMerchant. > Have spent a few hours trying to figure this out with no success. > > Here's the er

[Rails] Re: sorting a has_many collection

2009-02-09 Thread stretch
Bob, You could also render it with jquery or some javascript library that enables you to write the set of reviews once to javascript and present and re-present in multiple ways as needed without more roundtrips to the server. Al On Feb 9, 3:18 am, Juan José Vidal wrote: > You could use named_s

[Rails] Re: problem with instant rails

2009-02-08 Thread stretch
age). Unless you have changed > it then username root and no password will probably work. > > 2009/2/8 stretch > > > > > ending with _development is the convention for the NAME of the dev db > > not the tables > > > On Feb 8, 1:14 am, priyankeshu wrote: > &g

[Rails] Re: problem with instant rails

2009-02-08 Thread stretch
ending with _development is the convention for the NAME of the dev db not the tables On Feb 8, 1:14 am, priyankeshu wrote: > hi thre i have just started learning ROR (following video tutorial by > VTC) but on the video they were teaching on MAC, i thought i can > follow along on window with inst

[Rails] Re: SocketError in EmailController#correspond

2009-02-08 Thread stretch
Aoife, does your server have a DNS server set in the network settings so it can determine the ip address for that domain? Just did an nslookup on that domain: tretch$ nslookup smtp.vodafone.ie Server: 68.87.76.178 Address:68.87.76.178#53 Non-authoritative answer: *** Can't find

[Rails] Re: How to upload data using huge .sql file

2009-02-08 Thread stretch
Hey Hitesh, You could also use Heroku's yml data plugin http://blog.heroku.com/archives/2007/11/23/yamldb_for_databaseindependent_data_dumps/ Al On Feb 8, 5:31 am, Craig Demyanovich wrote: > To bulk-load a database, I'd use the tools provided by the database. With > mysql, you'd do something

[Rails] Re: why does "rake db:drop" in prod environment give "Mysql::Error: Table 'equity_production.accounts' doesn't exist"???

2009-02-08 Thread stretch
Hey Greg, >From an SQL command window, can you see the accounts table when you enter the command: 'show tables in equity_production'? If not, is the db in the list when you call 'show databases'? basic, I know, but that's what i'd check out first, not knowing the context Al On Feb 8, 3:22 am