[Rails] Re: Re: ERROR: Failed to build gem native extension (win server 2003/2008 ruby 1.9.1/1.8.7)

2011-04-02 Thread seeker 7805
David Kahn wrote in post #990488: > On Fri, Apr 1, 2011 at 3:43 PM, seeker 7805 > wrote: > >> > What version of Rails are you using? If you are using Rails 3 you need > to > intall the bundle (type 'bundle install' in the console). Hi David: Thanks for your reply. I typed in 'bundle install' and

[Rails] Timezone ActiveRecord and Rails3

2011-04-02 Thread Lucky Dev
I want to store, retrieve and handle all times inside my app in just one Timezone. => "New Delhi" for that I've set in my application.rb file, config.time_zone = "New Delhi" When i create a record like Event.create(:when => DateTime.new(2011, 5, 7, 16, 0, 0)) it creates an event record in my m

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

2011-04-02 Thread steve ross
Hey Bill-- I had to trim the [Rails] out of the header to get this out of my "general reading" folder. Sorry for the delayed reply. Yes, I am always interested in extra work (who isn't?). The best kind is the "not urgent enough" kind where there is budget :) I didn't know what kind of tech wri

[Rails] Different GET response w/ wget and w/ em-http-request

2011-04-02 Thread Jeffrey L. Taylor
I am trying to fetch http://drdobbs.com/rss/all. With wget or Firefox, works fine. With em-request-http, the server redirects to a login page - 302 status code, HTML response and response LOCATION header set to https://login.techweb.com:443/cas/login?service=http%3A%2F%2Fdrdob +bs.com%2Frss%2Fal

[Rails] Rails Routing default behavior and Invalid New Records

2011-04-02 Thread Andrew B.
I have a question about the design decision behind the rails default routing. The normal routing is, to create a new record we GET `/things/new`. However, when the user submits a new thing he is posting to #create at `/things`. The vanilla create action looks like: def create @thing = Thin

[Rails] How to install and configure Ruby on Rails with Windows Server 2008 EE

2011-04-02 Thread Alpha Blue
Hi All, I decided to write some blog entries on my pet project for running Ruby 1.9.2 and Ruby on Rails 3.0.5 on Windows Server 2008 EE. I figured I might as well post while I create, and if anyone wants to stop by and see how it works out, you are more than welcome to do so. I'm primarily conce

[Rails] Starting rails server on 3.0.5 gives Psych::SyntaxError - Parsing YAML

2011-04-02 Thread skt
Hello, I just updated to using Rails 3.0.5 and was on Ruby 1.9.2p0 but replaced that with 1.9.2p180 to try and get the over problem below but am unable to. After creating a new project and adding a few gems to Gemfile and bundle install (and update to make sure) when I try to start the server with

Re: [Rails] Best image processing gem

2011-04-02 Thread Carina Brito
execuse me!. I forgot this page.. https://github.com/markevans/dragonfly/ look for how use together your ruby gem =^.^= 2011/4/2 Carina Brito > I'd like dragonfly. I were used it about 3 weeks ago. Dragonfly run with > rmagick and i thought is better than rmagick, and this performace is good >

[Rails] error: 'Access denied for user 'root'@'localhost' '

2011-04-02 Thread Dan Vig
You left the password empty in your yml file but your local mysql you must have specified a password for root. So you need to plug that password in your password option in your yml file. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To

Re: [Rails] Best image processing gem

2011-04-02 Thread Carina Brito
I'd like dragonfly. I were used it about 3 weeks ago. Dragonfly run with rmagick and i thought is better than rmagick, and this performace is good 2011/4/2 Lily ^_^ > Hello, > > I need some help to find the gem that suits best my project. > > I'm developping a gallery for my website. I upload im

[Rails] error: 'Access denied for user 'root'@'localhost' '

2011-04-02 Thread wordmystic
rails railscoders --database=mysql created the directory with folders except for a 'components/' folder which Practical Rails by Alan Bradburne lists as one of the folders created. Continuing with: mysqladmin -u root create railscoders_development returns this: mysqladmin: connect to server at

[Rails] Best image processing gem

2011-04-02 Thread Lily ^_^
Hello, I need some help to find the gem that suits best my project. I'm developping a gallery for my website. I upload images through the backend, and the images are displayed as thumbnails alltogether on the same page. Then I use Lightbox to show them enlarged. I would like to physically resize

[Rails] How to use previous project Gemfile?

2011-04-02 Thread slindsey3000
I want to set up a new project and use all the gems in a previous project in their current state in that project. What should I do to make this happen? Do I just copy and paste the Gemfile.lock over to the new project Gemfile.lock? Thanks! Shawn -- You received this message because you are sub

[Rails] compass and blueprint.

2011-04-02 Thread Mauro
Hello, I have some problems on using compass and blueprint. Before asking I want to know if there is anyone using compass with blueprint liquid here. Thank you. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send e

[Rails] is overriding file naming conventions (for models and controllers) possible?

2011-04-02 Thread Alexey Muranov
Hello, i have another question about overriding Rails conventions. Is it possible to tell Rails which model/controller is defined in which file? I have generated a model and a controller as follows: $ rails generate model KnownIP ... ... $ rails generate controller KnownIPs ... The problem is w

[Rails] Is there an option for Rails sessions to exclude web crawlers and bots?

2011-04-02 Thread Jared Brown
I'm interested in knowing whether a session is created by pages requested by web crawlers and bots. I am using MySQL as a the session store and would like to prevent requests by web crawlers and bots from creating unnecessary session entries. -- You received this message because you are subscribe

Re: [Rails] Re: Help with serialize

2011-04-02 Thread Gustavo de Sá Carvalho Honorato
Serialization is OK. I think the problem is in deserialization. 2011/4/2 Gustavo de Sá Carvalho Honorato > > On Sat, Apr 2, 2011 at 1:54 PM, Frederick Cheung < > frederick.che...@gmail.com> wrote: > >> >> >> On Apr 2, 2:25 pm, Gustavo de Sá Carvalho Honorato >> wrote: >> > Hi, >> > >> > I'm hav

Re: [Rails] Unable to Seed Data for Authlogic

2011-04-02 Thread Colin Law
On 2 April 2011 20:10, Dan King wrote: > When I run rake db:seed in my Rails 3 application I get the following > error; anyone know how to resolve it? > > rake aborted! > undefined method > 'find_or_create_by_first_name_and_last_name_and_role_and_email_and_password_and_password_confirmation' > > B

[Rails] Unable to Seed Data for Authlogic

2011-04-02 Thread Dan King
When I run rake db:seed in my Rails 3 application I get the following error; anyone know how to resolve it? rake aborted! undefined method 'find_or_create_by_first_name_and_last_name_and_role_and_email_and_password_and_password_confirmation' Below are my create_users.rb,user.rb, and seeds.rb file

Re: [Rails] Re: Help with serialize

2011-04-02 Thread Gustavo de Sá Carvalho Honorato
On Sat, Apr 2, 2011 at 1:54 PM, Frederick Cheung wrote: > > > On Apr 2, 2:25 pm, Gustavo de Sá Carvalho Honorato > wrote: > > Hi, > > > > I'm having problems with serialize helper method. The data serialization > is > > OK, the problem is when I retrieve the object from database later the > > se

[Rails] Re: Help with serialize

2011-04-02 Thread Frederick Cheung
On Apr 2, 2:25 pm, Gustavo de Sá Carvalho Honorato wrote: > Hi, > > I'm having problems with serialize helper method. The data serialization is > OK, the problem is when I retrieve the object from database later the > serialized attribute is not loaded (=nil). I'm trying to implement the > Seria

[Rails] Help with serialize

2011-04-02 Thread Gustavo de Sá Carvalho Honorato
Hi, I'm having problems with serialize helper method. The data serialization is OK, the problem is when I retrieve the object from database later the serialized attribute is not loaded (=nil). I'm trying to implement the Serialized LOB design pattern, do you think there is a better way to do it? W

Re: [Rails] Unable to DUMP in schema.rb

2011-04-02 Thread Colin Law
On 2 April 2011 06:53, kaushikxkcd wrote: > I have created the whole database and now also created a migration > named "kmigrate" > when i use the " rake db:schema:dump " command it doesnt pop up an > error but when i log onto > schema.rb file then it pops up this error : What do you mean log ont

[Rails] Unable to DUMP in schema.rb

2011-04-02 Thread kaushikxkcd
I have created the whole database and now also created a migration named "kmigrate" when i use the " rake db:schema:dump " command it doesnt pop up an error but when i log onto schema.rb file then it pops up this error : ActiveRecord::Schema.define(:version => 20110402024216) do # Could not dump

Re: [Rails] "rm public/index.html not recognized...."

2011-04-02 Thread Regis Mesquita
Are you on a *nix system( Linux,MacOS X , BSD's)? If you are , have you already checked the environment variables? If you aren't , this is a *nix command. -- Regis Mesquita Sent with Sparrow On sexta-feira, 1 de abril de 2011 at 18:31, wordmystic wrote: > I typed, "rm public/index.html" > > G

Re: [Rails] Re: "rm public/index.html not recognized...."

2011-04-02 Thread Régis David Souza Mesquita
shouldn't the directory separator be inverted in windows? del public\index.html Em 01/04/2011, às 20:43, wordmystic escreveu: > Actually I took a guess at del and got back: Invalid switch - > "index.html". > > On Apr 1, 3:25 pm, Chris Mear wrote: >> On 1 Apr 2011, at 22:31, wordmystic wrote:

Re: [Rails] Re: "rm public/index.html not recognized...."

2011-04-02 Thread Regis Mesquita
have you already tried , "del public\index.html" ? -- Regis Mesquita Sent with Sparrow On sexta-feira, 1 de abril de 2011 at 21:26, wordmystic wrote: > OOps! It's still there, but the rem didn't give me any kind of error > message. > > On Apr 1, 4:54 pm, wordmystic wrote: > > But rem worked! >

[Rails] Error during new project creation

2011-04-02 Thread Jack
Every time I try to create a new project, this is what happens: C:\Users\Reynolds Family\sites>rails new simple_cms -d mysql create create README create Rakefile Could not find "config.ru" in any of your source paths. Your current source paths are: C:/Ruby192/lib/ruby/gems/1.9.

Re: [Rails] {:class=>"pi stuff"} is not a symbol

2011-04-02 Thread Frederick Cheung
On 1 Apr 2011, at 23:22, John Merlino wrote: > Hey all, > > I'm building a html helper. > > My view looks like this: > > = item_view "title", @post.title, :class => 'stuff' > This means that args.second is your hash of options > > def item_view(label, *args) >data = args.fir

Re: [Rails] {:class=>"pi stuff"} is not a symbol

2011-04-02 Thread Michael Pavling
On 1 April 2011 23:22, John Merlino wrote: >          = item_view "title", @post.title, :class => 'stuff' Have you got a field in your model called "class"? If so, I'd change that, as it's a reserved word, and will cause all sorts of confusion to Ruby. -- You received this message because you

Re: [Rails] Re: "rm public/index.html not recognized...."

2011-04-02 Thread Michael Pavling
On 2 April 2011 00:43, wordmystic wrote: > Actually I took a guess at del and got back:  Invalid switch - > "index.html". del public\index.html If this step is proving a stumble, maybe it would be appropriate to take some computer foundations classes before trying to learn RoR and application d