Re: [Rails] Re: Did rails or shoulda go insane on the inflection of 'taxes'?

2011-03-03 Thread Colin Law
On 2 March 2011 22:40, David Kahn d...@structuralartistry.com wrote: ... Good idea, sorry so puts 'xp_jurisdiction_taxes'.singularize while inside a spec (cant put it directly inside the shoulda call though) gives us: xp_jurisdiction_tax In that case it looks as if you are right about

Re: [Rails] date type in database becomes nil in rails

2011-03-03 Thread Colin Law
On 2 March 2011 23:24, Ichiro Saga li...@ruby-forum.com wrote: Hi, there.  I wrote an application in Windows and tried to run it in Ubuntu 10.04 64-bit.  The app works fine in windows but I found a strange problem when I tested it in Ubuntu.  Two tables in database have a column with date type

[Rails] Re: Unauthorized Access

2011-03-03 Thread Chandu80
Hi Colin, Yes the text was appearing from the application.A null value was being passed due to which the text 'Unauthorized Access' was being rendered. When I click on Reply,a javascript runs which populates data in the pop-up. Thanks Regards Chandrika On Mar 2, 2:59 pm, Colin Law

[Rails] Re: Rails wiki down

2011-03-03 Thread Kivi
On Mar 3, 9:55 am, Xavier Noria f...@hashref.com wrote: On Thu, Mar 3, 2011 at 8:29 AM, Maxo malk...@gmail.com wrote: Any idea when it will be up? I found lots of interesting materials on wiki, so it is indeed very helpful There are no plans to bring it up again by now. The wiki had some

Re: [Rails] Re: Rails wiki down

2011-03-03 Thread Xavier Noria
On Thu, Mar 3, 2011 at 9:24 AM, Kivi sonicmon...@gmail.com wrote: Could you please provide the links to these official documentations and guides? Sure: http://rubyonrails.org/documentation. I also found the rails wiki incredibly useful when I was installing the environment

Re: [Rails] Show a value in view

2011-03-03 Thread Colin Law
On 3 March 2011 07:43, Chandu80 chandu.she...@gmail.com wrote: Hello All, I am working on a microblogging application.(similar to twitter) In my controller there is a method called replypopUp.It is a method that runs when the reply link on timeline is clicked.When I a click on the link a

Re: [Rails] Re: Rails wiki down

2011-03-03 Thread Colin Law
On 3 March 2011 07:55, Xavier Noria f...@hashref.com wrote: On Thu, Mar 3, 2011 at 8:29 AM, Maxo malk...@gmail.com wrote: Any idea when it will be up? I found lots of interesting materials on wiki, so it is indeed very helpful There are no plans to bring it up again by now. The wiki had

Re: [Rails] Re: Rails wiki down

2011-03-03 Thread Michael Pavling
On 3 March 2011 08:41, Colin Law clan...@googlemail.com wrote: On 3 March 2011 07:55, Xavier Noria f...@hashref.com wrote: There are no plans to bring it up again by now. The wiki had some outdated information and was not maintained generally speaking. So where do I find the most useful list

[Rails] Mongrel starting Error

2011-03-03 Thread DHAMODHARAN N
Hello friends! When i tried to start my server arising this error, currently i using rails 2.3.2. If any one know what is reason suggestion me. $ mongrel_rails start !!! Path to log file not valid: log/mongrel.log mongrel::start reported an error. Use mongrel_rails mongrel::start -h to get help

Re: [Rails] Re: Rails wiki down

2011-03-03 Thread Xavier Noria
On Thu, Mar 3, 2011 at 9:41 AM, Colin Law clan...@googlemail.com wrote: Rails has now two official sets of documentation, the API and the guides. So where do I find the most useful list of reserved words that used to be at http://wiki.rubyonrails.org/rails/pages/ReservedWords ? As a last

Re: [Rails] Re: Rails wiki down

2011-03-03 Thread Colin Law
On 3 March 2011 09:34, Xavier Noria f...@hashref.com wrote: On Thu, Mar 3, 2011 at 9:41 AM, Colin Law clan...@googlemail.com wrote: Rails has now two official sets of documentation, the API and the guides. So where do I find the most useful list of reserved words that used to be at

[Rails] Re: Show a value in view

2011-03-03 Thread Chandu80
Hi, I tried executing the below statement and it just gave me @: What happens if you just have, just to check it is not an issue with the text area p@%= h posted_by_name %:/p Regards Chandrika On Mar 3, 1:36 pm, Colin Law clan...@googlemail.com wrote: On 3 March 2011 07:43, Chandu80

Re: [Rails] Re: Show a value in view

2011-03-03 Thread Colin Law
On 3 March 2011 10:39, Chandu80 chandu.she...@gmail.com wrote: Hi, I tried executing the below statement and it just gave me @: What happens if you just have, just to check it is not an issue with the text area p@%= h posted_by_name %:/p I meant @posted_by_name of course. Sorry. By the

Re: [Rails] Re: Rails wiki down

2011-03-03 Thread Xavier Noria
On Thu, Mar 3, 2011 at 11:19 AM, Colin Law clan...@googlemail.com wrote: ERROR The requested URL could not be retrieved While trying to retrieve the URL: http://web.archive.org/web/20110303101520/wiki.rubyonrails.org/rails The following error was encountered:    * Socket Failure The system

[Rails] Re: Show a value in view

2011-03-03 Thread Chandu80
Hi, I also tried p@%=h @posted_by_name.inspect %:/p and it gave @nil: Some null value being returned from URL. Thanks for the help. Regards Chandrika On Mar 3, 1:36 pm, Colin Law clan...@googlemail.com wrote: On 3 March 2011 07:43, Chandu80 chandu.she...@gmail.com wrote: Hello All, I

[Rails] One controller for two tables?

2011-03-03 Thread Vero
Hi everyone! I have one controller in app/comtrollers/AdminsController.rb class AdminsController ApplicationController #with standart CRUD methods def index @admins = Admin.find(:all) end There are another one, that inherit his methods from parent: class TurnirresultsController

[Rails] Problems with Sqlite3 and apt-get

2011-03-03 Thread Scott L Gu
I am new to Ruby, and have a problem to install Sqlite3. After searching the previous posts, I found a solution, first to do : sudo apt-get install libsqlite3-0 libsqlite3-dev However, I am on an AWS Ec2 instance which don't have apt-get, only with yum. Would anyone please tell me how to

[Rails] Re: CrowdCoded.com

2011-03-03 Thread innosys
Dear Michael Thank you for your response. In regards to your comments: 1) By all means ,this is not spam. CrowdCoded is a service aimed at all development cycle professionals. It allows code freelancers to find/join/submit projects for free. Hence –we thought it would be of good service to the

[Rails] Re: Problems with Sqlite3 and apt-get

2011-03-03 Thread Frederick Cheung
On Mar 3, 10:38 am, Scott L Gu scott...@gmail.com wrote: I am new to Ruby, and have a problem to install Sqlite3. After searching the previous posts, I found a solution, first to do :   sudo apt-get install libsqlite3-0 libsqlite3-dev However, I am on an AWS Ec2 instance which don't have

[Rails] Re: One controller for two tables?

2011-03-03 Thread Vero
Hi. It's again me. I found article that helped me to solved this exercise: http://www.ruby-forum.com/topic/202398#new https://gist.github.com/280670 Sorry that I disturbed you. Bye.) -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To

Re: [Rails] Re: One controller for two tables?

2011-03-03 Thread Michael Pavling
On 3 March 2011 13:12, Vero exe.shka@gmail.com wrote: Hi. It's again me. I found article that helped me to solved this exercise: http://www.ruby-forum.com/topic/202398#new If you're looking to make your controllers DRYer, then you might benefit from one of the abstraction methods like

Re: [Rails] Re: Show a value in view

2011-03-03 Thread Colin Law
On 3 March 2011 10:47, Chandu80 chandu.she...@gmail.com wrote: Hi, By the way could you not top post please, it makes it difficult to follow the thread. Insert your reply at appropriate point(s) in previous message. Thanks I also tried p@%=h @posted_by_name.inspect %:/p  and it gave @nil:

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

2011-03-03 Thread m__
I'm having the same error message over here when installing Redmine, although a quite different setup (see below). Does anybody have a solution to this problem? C:\Redminerake db:migrate --trace (in C:/Redmine) rake aborted! uninitialized constant ActiveSupport::Dependencies::Mutex

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

2011-03-03 Thread Frederick Cheung
On Mar 3, 12:01 am, Kevin Owocki ksowo...@gmail.com wrote: Hi all, I'm new to the world of ruby, and am trying to get my first rake set up.  But my rake is failing with the following error message: uninitialized constant ActiveSupport::Dependencies::Mutex Does sticking require 'thread'

[Rails] Re: Problems with Sqlite3 and apt-get

2011-03-03 Thread Scott L Gu
Thanks, Frederick, it works. I can go one step further now. However, I still have a problem with rails console: `require': no such file to load -- readline (LoadError) I saw some solution to do :yum install ncurses-devel readline- devel I did it. However, the next steps should be : cd

[Rails] Re: Same file in different apps

2011-03-03 Thread Hemant Bhargava
Well say if i need app/models/abc.rb of an existing application ABC into new application DEF, then what all i need to do? There are so many files i need to be shared but did'nt have any fair idea how to get it. So rubians :), please help me on it. -- Posted via http://www.ruby-forum.com/. --

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

[Rails] Re: Problems with Sqlite3 and apt-get

2011-03-03 Thread Frederick Cheung
On Mar 3, 1:44 pm, Scott L Gu scott...@gmail.com wrote: Thanks, Frederick, it works. I can go one step further now. However, I still have a problem with rails console:      `require': no such file to load -- readline (LoadError) I saw some solution to do :    yum install ncurses-devel

[Rails] Re: A rails plugin to generate css sprite image automatically

2011-03-03 Thread Sam Woodard
flyerhzm wrote in post #855601: Hi guys, I have written a rails plugin/gem to generate css sprite image automatically. This is awesome! I'm really glad you are creating tools like this. Just wanted to through out there that there is another gem that is similar, active_assets, but it also

Re: [Rails] Re: A rails plugin to generate css sprite image automatically

2011-03-03 Thread Raul Souza Lima
One more option https://github.com/hagenburger/lemonade ;) On 3 March 2011 11:55, Sam Woodard li...@ruby-forum.com wrote: flyerhzm wrote in post #855601: Hi guys, I have written a rails plugin/gem to generate css sprite image automatically. This is awesome! I'm really glad you are

[Rails] Re: Installation Error?

2011-03-03 Thread Gaba Luschi
When I do gem env, I get RubyGems Environment: -RUBYGEMS VERSION: 1.5.2 - RUBY VERSION: 1.9.2 2011-02-18 patchlevel 180 [i386-mingw32] - INSTALLATION DIRECTORY: C:/Ruby192/lib/ruby/gems/1.9.1 - RUBY EXECUTABLE: C:/Ruby192/bin/ruby.exe - EXECUTABLE DIRECTORY: C:/Ruby192/bin - RUBYGEMS PLATFORMS:

[Rails] Re: Ruby on Rails integration with Red5 Chat

2011-03-03 Thread Fernando Perez
I used to have a videochat app on my website. People would register from within the Rails app, then the Red5 server would simply access the database to check for credentials. The rails part was fun, the Red5/java part... less fun. -- http://digiprof.tv -- Posted via

[Rails] Rails 2.3.7 and content_for problem

2011-03-03 Thread eric
I want to offer control over my app's navigation using multiple yields, which worked fine on my home rails 3 installation, but at work, I'm stuck with an app that uses 2.7, and the same approach isn't working. Basically, I have 3 yields: % yield :navigation% % yield :sidebar % and regular ol'

[Rails] Re: group() and PostgreSQL strange behavior

2011-03-03 Thread Fernando Perez
I tried, and received the same result: User.group(:first_name) The thing is, we group for a reason. So PostgreSQL is expecting that reason to appear, e.g: count(), sum(), etc. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google

[Rails] Re: One controller for two tables?

2011-03-03 Thread Vero
Thanks) -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options,

[Rails] Re: Video Streaming

2011-03-03 Thread kwiest
I've used TokBox before. They have a full API to place calls, or you can just use one of their cut-and-paste boxes to support video and chat. I also use Media Temple to host. Has been great for me so far. On Mar 2, 2:19 pm, Jags84 jag...@gmail.com wrote: Hi guys! I like to develop an

[Rails] Problem connecting to localhost:3000

2011-03-03 Thread Gaba Luschi
Hi, After typing rails server, I tried to go to http://localhost:3000, as well as http://0.0.0.0:3000, but I got an error message. In the first case, I get: Connection refused. For the second one, there was an error about no DNS entry? Help! -- Posted via http://www.ruby-forum.com/. -- You

[Rails] Re: Problem connecting to localhost:3000

2011-03-03 Thread Gaba Luschi
Walter, This is what I get when I type in rails server = Booting WEBrick = Rails 3.0.4 application starting in development on http://0.0.0.0:3000 = call with -d to detach = Ctrl-C to shutdown server [2011-03-03 12:20:42] INFO WEBrick 1.3.1 [2011-03-03 12:20:42] INFO ruby 1.8.7 (2011-02-18)

Re: [Rails] Problem connecting to localhost:3000

2011-03-03 Thread Walter Lee Davis
On Mar 3, 2011, at 12:06 PM, Gaba Luschi wrote: Hi, After typing rails server, Please paste in what you see in Terminal after you typed this. You might also see some sort of traffic log from the first try (the one that was refused). Also, what does your /etc/hosts file look like? Do

[Rails] Update and Redevelopment

2011-03-03 Thread Doug Clark
Hey all, first post here, looking for some answers that I couldn't find otherwise on the web. Several years ago, my company hired a developer to develop a database system for our company. It handles all customer records, and is used by 6-10 users on a daily basis. It was written with Rails

[Rails] Re: Problem connecting to localhost:3000

2011-03-03 Thread Gaba Luschi
How do i check to see what my etc/hosts file look like? It's in a demo app, in views, with a basic index.html. How do I check re: firewall? Thanks! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

Re: [Rails] Update and Redevelopment

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

[Rails] application/json request defaults?

2011-03-03 Thread pipplo
I ran into a strange problem when moving a locally working app to a hosted server. We have a phone app sending json requests via POST to the rails app. When doing this on the local system everything comes through as application/json When I moved it to the host I was having Authenticity Token

Re: [Rails] Re: Problem connecting to localhost:3000

2011-03-03 Thread Walter Lee Davis
On Mar 3, 2011, at 12:22 PM, Gaba Luschi wrote: How do i check to see what my etc/hosts file look like? It's in a demo app, in views, with a basic index.html. How do I check re: firewall? Thanks! If you're using a Mac, and TextMate, type mate /etc/hosts in your Terminal. If you don't

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

2011-03-03 Thread Don.Mc
I am using Rails 3. Is there a way to stop a fixture from loading for certain test cases? Regards, Don Mc -- 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

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

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

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

2011-03-03 Thread Kevin Owocki
For anyone else who had this problem, this is how I solved it: Make sure 'activesupport' is listed when you do 'gem list' and make sure it's the same version as 'rails'. All the versions must match (and must match the RAILS_VERSION in config/environment.rb). If you need to install a specific

[Rails] Re: date type in database becomes nil in rails

2011-03-03 Thread Ichiro Saga
I think you will have to give us a lot more information. Post the section from db/schema.rb for the offending table, post the model.rb (remove any irrelevant methods you have included, but if you have included a method with a name like the column that does not work then include that) and

[Rails] Re: Problem connecting to localhost:3000

2011-03-03 Thread Gaba Luschi
I have windows. When I type in edit /etc/hosts, I get MS-DOS Editor Version 2.0.026 Copyright (c) Microsoft Corp 1995 Is there something in particular I should look for here? I get /B - Forces monochrome mode /H - Displays the maximum number of lines possible for your hardware . . . -- Posted

Re: [Rails] Mongrel starting Error

2011-03-03 Thread Frederick Cheung
On 3 Mar 2011, at 09:16, DHAMODHARAN N dhams...@gmail.com wrote: Hello friends! When i tried to start my server arising this error, currently i using rails 2.3.2. If any one know what is reason suggestion me. $ mongrel_rails start !!! Path to log file not valid: log/mongrel.log

Re: [Rails] Re: Problem connecting to localhost:3000

2011-03-03 Thread Hassan Schroeder
On Thu, Mar 3, 2011 at 9:52 AM, Walter Lee Davis wa...@wdstudio.com wrote: On other platforms, I can't say for sure about either of these. [2011-03-03 12:20:42] INFO ruby 1.8.7 (2011-02-18) [i386-mingw32] Doesn't the last part of that line indicate Windows? -- Hassan Schroeder

[Rails] Re: Re: Re: Rails 3 Routing: Namespace'd Controllers?

2011-03-03 Thread Jesse S.
Stefan Buhr wrote in post #897683: Conrad Taylor wrote: Sent from my iPhone Please post the Rails 2.x route that you would like to convert to Rails 3.0? Hey Conrad, I think I made a mistake. I was under the impression that following code in rails 2 map.namespace :admin do |admin|

[Rails] Re: Problem connecting to localhost:3000

2011-03-03 Thread Gaba Luschi
So...how can I get http://localhost:3000 to display? Or connect to the host, given that it seems like when I type rails server i get the standard booting webrick messages...? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google

Re: [Rails] Re: Problem connecting to localhost:3000

2011-03-03 Thread Frederick Cheung
On 3 Mar 2011, at 18:22, Gaba Luschi li...@ruby-forum.com wrote: So...how can I get http://localhost:3000 to display? Or connect to the host, given that it seems like when I type rails server i get the standard booting webrick messages...? Did you check the windows firewall (or any other

[Rails] NilClass in my partial

2011-03-03 Thread Rodrigo Alves Vieira
Hello everyone, in my Rails 3.0.4 app, I created a partial called _category.html.erb that makes part of the category scope of the app like categories_controller, category.rb (the model) and so on. But, when I do render the partial in app/views/categories/index.html.erb it shows the following

Re: [Rails] Re: Problem connecting to localhost:3000

2011-03-03 Thread Rodrigo Alves Vieira
Also, try http://lvh.me:3000 -- 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 group, send email to

[Rails] Re: NilClass in my partial

2011-03-03 Thread Rodrigo Alves Vieira
Hello everyone, I just solve this problem. I had in my partial the following code: %= render :partial = category -% Then I changed to this: %= render :partial = category, :collection = @categories -% Thanks! -- You received this message because you are subscribed to the Google Groups Ruby

[Rails] Re: Problem connecting to localhost:3000

2011-03-03 Thread Gaba Luschi
mmmh, both failed...thoughts? -- 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 group, send email to

[Rails] Re: Problem connecting to localhost:3000

2011-03-03 Thread Gaba Luschi
Sorry, that is, the error is still Connection refused. -- 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

[Rails] Can't start console

2011-03-03 Thread Glen
rails console is generating an empty application called console rather than launching the console. How do I get into the console. rails server works fine by the way. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group,

Re: [Rails] Can't start console

2011-03-03 Thread Hassan Schroeder
On Thu, Mar 3, 2011 at 11:55 AM, Glen damnbig...@gmail.com wrote: rails console is generating an empty application called console rather than launching the console.  How do I get into the console.  rails server works fine by the way. In the same window? It sure sounds like you're invoking two

Re: [Rails] Can't start console

2011-03-03 Thread David Kahn
On Thu, Mar 3, 2011 at 1:55 PM, Glen damnbig...@gmail.com wrote: rails console is generating an empty application called console rather than launching the console. How do I get into the console. rails server works fine by the way. Are you using Rails 3? Sounds to me like you are trying to

Re: [Rails] Re: Rails wiki down

2011-03-03 Thread Colin Law
On 3 March 2011 10:53, Xavier Noria f...@hashref.com wrote: On Thu, Mar 3, 2011 at 11:19 AM, Colin Law clan...@googlemail.com wrote: ERROR The requested URL could not be retrieved While trying to retrieve the URL: http://web.archive.org/web/20110303101520/wiki.rubyonrails.org/rails The

[Rails] Nondestructive testing environment on legacy db

2011-03-03 Thread Jason Lewis
Hi, I've been trying to Google for an answer to this, but the suggestions I've found have been either contradictory or seemingly outdated. I'm building a Rails frontend for a legacy Oracle database, and I want to do proper tests with RSpec/Cucumber. What I can't seem to figure out is how to run

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

2011-03-03 Thread Colin Law
On 3 March 2011 18:03, Peter Bell pe...@pbell.com wrote: It seems like best practice is to use a factory gem like factory_girl instead of fixtures. Easily getting different data for different tests is one of the benefits of such an approach. +1 You don't need to chuck everything out and

Re: [Rails] Nondestructive testing environment on legacy db

2011-03-03 Thread David Kahn
On Thu, Mar 3, 2011 at 2:56 PM, Jason Lewis jasonlewi...@gmail.com wrote: Hi, I've been trying to Google for an answer to this, but the suggestions I've found have been either contradictory or seemingly outdated. I'm building a Rails frontend for a legacy Oracle database, and I want to do

[Rails] a twist on polymorphism

2011-03-03 Thread Yoram
I'm struggling with the following problem: I have a class, call it 'School'. An instance of School can have all sorts of assets, such as 'Books', 'Tables', 'Chairs', 'Teachers'. Each of these asset types is modeled by it's own model and has a corresponding table in the db. So, there is a table

Re: [Rails] a twist on polymorphism

2011-03-03 Thread Colin Law
On 3 March 2011 21:10, Yoram yoramber...@gmail.com wrote: I'm struggling with the following problem: I have a class, call it 'School'. An instance of School can have all sorts of assets, such as 'Books', 'Tables', 'Chairs', 'Teachers'. Each of these asset types is modeled by it's own model

[Rails] server side HTTP Client (Browser)

2011-03-03 Thread Julian
Hi, Is there anything on in RoR or Ruby that can be used as a server side HTTP Client. Something like HTTP Unit and jsdom from NodeJS. I'm trying to log into some custom site and scrap the data from them. It would be a plus if the client also support javascript. Thanks. Julian -- You

[Rails] Re: Do you agree that as some point, every (big enough) Rails app sould not rely only on ActiveRecord?

2011-03-03 Thread gezope
Hello, I highly reccomend you DataMapper http://datamapper.org because its code is beautiful, have a helpful community http://groups.google.com/group/datamapper you can immediately change Rails' ORM with this adapter https://github.com/datamapper/dm-rails Also you may give a try for NoSQL:

[Rails] Re: elationship between ruby on rails and html/css?

2011-03-03 Thread gezope
Hi, to be honest being rude with beginners is unnecessary. Maybe he has no idea where to start - and a mailing list can be a right place. You can find all HTML standards here: http://www.w3schools.com If you don't know where to start the best is try out everything yourself and you will find that

[Rails] Re: migrations in rails?

2011-03-03 Thread ivanpoval
Please, don't forget that the migrations are also provide u a pure ruby DSL to operate over your DB structure. It means that they are also independent from the DB driver (oracle or mysql or postgres). -- Thanks, Ivan Povalyukhin On Mar 2, 2:18 pm, David Kahn d...@structuralartistry.com wrote: On

[Rails] Re: a twist on polymorphism

2011-03-03 Thread Yoram
I'm staying away from STI because I want to be able to add additional asset types over time, none of which share attributes with other assets. So - with STI, I could end up with a table that has hundreds of columns. On Mar 3, 1:13 pm, Colin Law clan...@googlemail.com wrote: On 3 March 2011

Re: [Rails] Re: elationship between ruby on rails and html/css?

2011-03-03 Thread Colin Law
On 3 March 2011 21:34, gezope gez...@gmail.com wrote: Hi, to be honest being rude with beginners is unnecessary. Maybe he has no idea where to start - and a mailing list can be a right place. I hope you are not suggesting that asking whether a question is homework is being rude. It is a

[Rails] Re: PayPal notifications - Rails 3.

2011-03-03 Thread Max P.
Anders_P wrote in post #967140: Thanks Colin! You found the root of my problem, the invoice/id was wrong. And thanks for the tips regarding Ruby-debug. Still has a lot to learn. :D // Anders Hi Anders, I'm having this same problem. Could you tell me what exactly was wrong with your

[Rails] Re: haml to erb - does it work with new html5 tags?

2011-03-03 Thread gezope
Hey, I made a little test for you: Modified .html.haml : %td#whatif.itworks.fine hm? Gives this (Right click / Viev source ;P) td class='itworks fine' id='whatif'hm?/td But it's a good question, I'll check HAML soon too ;) On Mar 2, 7:20 pm, Manoj Sachwani i...@designerfoo.com wrote:

[Rails] Functional test default methods

2011-03-03 Thread djangst
Given a route resources :orders, why does the following (generated) functional test using a GET request work? Should it? # test/functional/orders_controller_test.rb test should get create do get :create # create action supports request method other than POST? assert_response :success

[Rails] Re: elationship between ruby on rails and html/css?

2011-03-03 Thread dana tassler
Having just graduated from college as a Programmer/Analyst, I can certainly say there is no shortage of lazy students. One peer would not spend more than five minutes on any problem before attempting to either steal the answer from a classmate or get a tutor to do his own work. Sorry to steal

Re: [Rails] Functional test default methods

2011-03-03 Thread Colin Law
On 3 March 2011 21:57, djangst djan...@gmail.com wrote: Given a route resources :orders, why does the following (generated) functional test using a GET request work? Should it?  # test/functional/orders_controller_test.rb  test should get create do    get :create # create action supports

[Rails] which oauth gem to use?

2011-03-03 Thread boo boo
Does any1 have any recommendations for an oauth gem. I am trying to create a twitter proxy. I'm not sure which oauth gem to use. Thanks in advance! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group.

[Rails] Help hacking AR timestamps

2011-03-03 Thread Kendall Gifford
I have a specific need to hack active record migrations for MySQL so that :timestamp fields will map to MySQL TIMESTAMP columns (instead of DATETIMElike they do now). I first tried monkey-patching active record with an initializer, then with a gem that uses a railtie. After consistent failure

[Rails] Re: Nested forms validation problem

2011-03-03 Thread Dan Th
OK so I have had a bit of a breakthrough - the form works great when the association is changed to has_many rather than has_one What do I need to change to get this working for a has_one association? Thanks in advance! -- Posted via http://www.ruby-forum.com/. -- You received this message

[Rails] Example of work with mongo

2011-03-03 Thread Manny 777
Hi there, I'm newbie here and I have a problem with the connection with MongoDB. The connection among Rails and MongoDB works, but I don't know, how to print only one column from document. If I'm trying following a part of code: puts db[testCollection].find_one().inspect So I'will get the

Re: [Rails] Example of work with mongo

2011-03-03 Thread Hassan Schroeder
On Thu, Mar 3, 2011 at 4:41 PM, Manny 777 li...@ruby-forum.com wrote: The connection among Rails and MongoDB works, but I don't know, how to print only one column from document. puts db[testCollection].find_one().inspect So I'will get the entire structure of BSON, as:

[Rails] DEPRECATION WARNING: error_messages_for was removed from Rails.

2011-03-03 Thread Gaba Luschi
Hi, When I tried to add in an error_messages_for into one of my files and loaded the site, I got this error: DEPRECATION WARNING: error_messages_for was removed from Rails and is now available as a plugin. Please install it with `rails plugin install git://github.com/rails/dynamic_form.git`.

[Rails] Re: elationship between ruby on rails and html/css?

2011-03-03 Thread Gaba Luschi
don't worry - I'm not offended at all. I realize I'm a total beginner and I'm ok with that. I'm currently working through a book and have already managed to create a hideous but functional page! Thanks for the helpful responses re: tutorials, and explaining the relationship btwn Ruby/Rails

Re: [Rails] Mongrel starting Error

2011-03-03 Thread DHAMODHARAN N
Ya its exit? On Thu, Mar 3, 2011 at 11:46 PM, Frederick Cheung frederick.che...@gmail.com wrote: On 3 Mar 2011, at 09:16, DHAMODHARAN N dhams...@gmail.com wrote: Hello friends! When i tried to start my server arising this error, currently i using rails 2.3.2. If any one know what is

Re: [Rails] Mongrel starting Error

2011-03-03 Thread DHAMODHARAN N
yes its Exist. On Fri, Mar 4, 2011 at 10:46 AM, DHAMODHARAN N dhams...@gmail.com wrote: Ya its exit? On Thu, Mar 3, 2011 at 11:46 PM, Frederick Cheung frederick.che...@gmail.com wrote: On 3 Mar 2011, at 09:16, DHAMODHARAN N dhams...@gmail.com wrote: Hello friends! When i tried to

[Rails] Re: Problems with Sqlite3 and apt-get

2011-03-03 Thread Scott L Gu
After I re-installed Ruby, 'rails console' works. Really appreciate your helps, Frederick ! Scott On Mar 3, 6:32 am, Frederick Cheung frederick.che...@gmail.com wrote: On Mar 3, 1:44 pm, Scott L Gu scott...@gmail.com wrote: Thanks, Frederick, it works. I can go one step further now.

Re: [Rails] DEPRECATION WARNING: error_messages_for was removed from Rails.

2011-03-03 Thread Bryan Crossland
On Mar 3, 2011, at 7:37 PM, Gaba Luschi li...@ruby-forum.com wrote: Hi, When I tried to add in an error_messages_for into one of my files and loaded the site, I got this error: DEPRECATION WARNING: error_messages_for was removed from Rails and is now available as a plugin. Please

Re: [Rails] Mongrel starting Error

2011-03-03 Thread Bryan Crossland
On Mar 3, 2011, at 11:17 PM, DHAMODHARAN N dhams...@gmail.com wrote: yes its Exist. What directory are you starting mongrel from and in that directory is there a folder called log with mongrel.log in it? It may be that where you see the log is not where Mongrel thinks it is. B. -- You