[Rails] Re: Re: How install libv8 (therubyracer) Windows 7

2012-06-21 Thread Luis Lavena
On Thursday, June 21, 2012 1:16:05 PM UTC-3, Ruby-Forum.com User wrote: > > > Hi Luis, > Thanks for the answer. I did run bundle install and bundle update a few > times after I changed the gemfile without any luck. I wonder why less > is depending on therubyracer? Any ideas? I have no ide

Re: [Rails] how to use model withour database

2012-06-21 Thread Aleksey V Zapparov
On Thu, 21 Jun 2012 16:54:46 -0300 Martin Aceto wrote: > > I'm new to ruby on rails and I have little problem. I need to make > > application that creates list of items on startup. So model shouldnt > > have database. > > maybe this could help you > > http://railscasts.com/episodes/326-activeat

[Rails] Re: generate an array of model instances

2012-06-21 Thread renu mehta
NoMethodError (undefined method `member_phones' for #): app/controllers/home_controller.rb:43:in `member' Thats the error that I get. -- 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

Re: [Rails] Rails command for creating static pages

2012-06-21 Thread Colin Law
On 21 June 2012 21:32, cyber c. wrote: > Hi, > > How do we create static pages using rails(shud have only buttons, some > text and upon clicks the appropriate controller should be called)? Chapter 3 of railstutorial.org deals with this. http://ruby.railstutorial.org/chapters/static-pages#top Col

Re: [Rails] generate an array of model instances

2012-06-21 Thread Colin Law
On 21 June 2012 18:50, renu mehta wrote: > Hello, > > In my app there is a one-to-many relation between members and > member_phones. > Following code works in ruby 1.8.7, rails 3.0.3 but fails on heroku. > > > @member = Member.new > @member_phone=@member.member_phones.build In what way does it fa

[Rails] Rails command for creating static pages

2012-06-21 Thread cyber c.
Hi, How do we create static pages using rails(shud have only buttons, some text and upon clicks the appropriate controller should be called)? -- 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

Re: [Rails] how to use model withour database

2012-06-21 Thread Martin Aceto
On Thu, Jun 21, 2012 at 4:25 PM, Amer Zildzic wrote: > Hi, > > I'm new to ruby on rails and I have little problem. I need to make > application that creates list of items on startup. So model shouldnt > have database. > > 1. Is the best choice to use standard class as model, for example > item.rb

[Rails] how to use model withour database

2012-06-21 Thread Amer Zildzic
Hi, I'm new to ruby on rails and I have little problem. I need to make application that creates list of items on startup. So model shouldnt have database. 1. Is the best choice to use standard class as model, for example item.rb in models folder? 2. What's the best way to create collection of mo

[Rails] Re: where do I report this DateTime bug?

2012-06-21 Thread Fearless Fool
I've created: https://github.com/rails/rails/issues/6814 ... which seems like the correct place to report this. I'm sure I'll hear from the rails admin team soon enough if that's not the right place. - ff -- Posted via http://www.ruby-forum.com/. -- You received this message because you

[Rails] Re: rake aborted

2012-06-21 Thread One Two
Walter Davis wrote in post #1065560: > Triple check that the version of Rails in your tutorial matches > the version installed on your computer. I got it working. I found a sample gem file at https://raw.github.com/railstutorial/sample_app_2nd_ed/master/Gemfile for the tutorial that I am using

[Rails] generate an array of model instances

2012-06-21 Thread renu mehta
Hello, In my app there is a one-to-many relation between members and member_phones. Following code works in ruby 1.8.7, rails 3.0.3 but fails on heroku. @member = Member.new @member_phone=@member.member_phones.build but this works on heroku: @member = Member.new @member_phone=MemberPhone.new

[Rails] Re: rake aborted

2012-06-21 Thread n/a n/a
I am using Rails 3.1.0, Gem 1.8.24, and Ruby 1.9.3p194. I've edited the gem file and changed versions of things to try to fix this and other problems that I have. I think that in order to fix certain problems, I might end up breaking something else. I tried "gem update --system" and still had the s

[Rails] Re: rake aborted

2012-06-21 Thread Fearless Fool
Walter Davis wrote in post #1065560: > What version of rake, what version of Ruby, what version of Rails? Also, > what version of Gem? ... Walter's right. This is just a hunch, but you might try: gem update --system and see if that helps. - ff -- Posted via http://www.ruby-forum.com/. --

Re: [Rails] rake aborted

2012-06-21 Thread Walter Lee Davis
What version of rake, what version of Ruby, what version of Rails? Also, what version of Gem? There's lots of reasons why this might not work. Are you using rvm? If so, make a new gemset and bundle install again there. Triple check that the version of Rails in your tutorial matches the version i

[Rails] Re: where do I report this DateTime bug?

2012-06-21 Thread Fearless Fool
> Can you post the contents of schema.rb section for the table. > Also it would be interesting to put in some inspect debug for expected > and found. Colin: Done. See https://gist.github.com/2967023 for code and results. As for "inspect debug for expected and found", I assume you mean like this

[Rails] Re: rake aborted

2012-06-21 Thread n/a n/a
I tried running bundle update but then I still got the same error on rake db:migrate. ---Original message--- > -- > How do I get rake to work? I would try running bundle update to make sure you have all of your gems properly installed. This sounds like a version mis-match between various Rails m

Re: [Rails] where do I report this DateTime bug?

2012-06-21 Thread Colin Law
On 21 June 2012 17:36, Fearless Fool wrote: > I have isolated what appears to be a bug in the Rails extensions to > DateTime, but I don't know where to report it. > > I have a standalone file to demonstrate the bug, but the punch line is > that this code: > >    TestRecord.create!(:f_datetime => (

[Rails] where do I report this DateTime bug?

2012-06-21 Thread Fearless Fool
I have isolated what appears to be a bug in the Rails extensions to DateTime, but I don't know where to report it. I have a standalone file to demonstrate the bug, but the punch line is that this code: TestRecord.create!(:f_datetime => (expected = DateTime.jd(200))) found = TestRecord

Re: [Rails] rake aborted

2012-06-21 Thread Walter Lee Davis
On Jun 21, 2012, at 12:32 PM, n/a n/a wrote: > I've been trying to follow Ruby on Rails 3 Tutorial by Michael Hartl but > had a problem on page 199 when it asks me to enter "rake db:migrate". I > got the following results: > -- > rake aborted! > undefined method `mass_assignment_sanitizer=' for >

[Rails] rake aborted

2012-06-21 Thread n/a n/a
I've been trying to follow Ruby on Rails 3 Tutorial by Michael Hartl but had a problem on page 199 when it asks me to enter "rake db:migrate". I got the following results: -- rake aborted! undefined method `mass_assignment_sanitizer=' for ActiveRecord::Base:Class Tasks: TOP => db:migrate => enviro

[Rails] Re: Re: How install libv8 (therubyracer) Windows 7

2012-06-21 Thread Alan M.
Luis Lavena wrote in post #1065543: > On Thursday, June 21, 2012 3:30:02 AM UTC-3, Ruby-Forum.com User wrote: >> >> Hi Everaldo, >> I'm also using Windows 7 and I've had the same problem as Felipe, I >> tried including >> gem 'therubyracer', :platform => :ruby >> in my gemfile but I still cannot st

[Rails] Re: Re: How install libv8 (therubyracer) Windows 7

2012-06-21 Thread Luis Lavena
On Thursday, June 21, 2012 3:30:02 AM UTC-3, Ruby-Forum.com User wrote: > > Hi Everaldo, > I'm also using Windows 7 and I've had the same problem as Felipe, I > tried including > gem 'therubyracer', :platform => :ruby > in my gemfile but I still cannot start the "rails server" to start, > sinc

Re: [Rails] Encode URL for a file upload

2012-06-21 Thread Walter Lee Davis
On Jun 21, 2012, at 3:34 AM, Avantec Van wrote: > Hi, > I'm creating an file uploading application. I'm using paperclip to > upload files. I just did this, a couple weeks ago. > > my upload path is > "http://localhost:3000/system/uploads/uploaded_files/000/000/064/original/Cell%20phone%20ring

[Rails] rails - postgres error: Reason: Incompatible library version: libpq.5.dylib requires version 1.0.0 o

2012-06-21 Thread dc dieci
Hi, I am stuck with the setup of Ruby (1.9.3), Rails and Postgres (9.0.8) on my Mac (10.6.8). Everytime when I run rails console I get the following error: /Users/dc/.rvm/gems/ruby-1.9.3-head@global/gems/pg-0.13.2/lib/pg.rb:4:in `require': dlopen(/Users/dc/.rvm/gems/ruby-1.9.3-head@global/gems/pg

Re: [Rails] Hosting of Ruby on Rails3 App

2012-06-21 Thread Patrick Mulder
On Thu, Jun 21, 2012 at 1:31 PM, Mandy wrote: > > On Thursday, June 21, 2012 1:12:17 PM UTC+5:30, subbu g wrote: >> >> Heroku is good > > > Can you please explain more about Heroku. I'm not getting it. > > -- Heroku offers free hosting space with an easy deployment process (especially regarding d

[Rails] configuration of merchant id and key in rails aplication

2012-06-21 Thread pavan konduru
Please can any one help where to give the merchant id and key in rails application while integrating google check out. Please help me with this. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. T

Re: [Rails] Hosting of Ruby on Rails3 App

2012-06-21 Thread Mandy
On Thursday, June 21, 2012 1:12:17 PM UTC+5:30, subbu g wrote: > > Heroku is good > Can you please explain more about Heroku. I'm not getting it. -- 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

[Rails] Open form in modal box in rails 3

2012-06-21 Thread harshad patel
Hi All, I am new in ROR. I want to open form in modalbox of jquery in rails3. So please send me help if any body have a idea asap. Thanks. -- 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 po

Re: [Rails] Re: Array at bottom of yield

2012-06-21 Thread Colin Law
On 21 June 2012 10:04, Timen E. wrote: > Ah, got it. Thanks again, Colin! I used <%= at my each :) I'm so dumb xD We have all done it. Colin -- 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 rubyonrai

[Rails] Re: Array at bottom of yield

2012-06-21 Thread Timen E.
Ah, got it. Thanks again, Colin! I used <%= at my each :) I'm so dumb xD -- 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. T

Re: [Rails] Array at bottom of yield

2012-06-21 Thread Colin Law
On 21 June 2012 09:25, Timen E. wrote: > Heya, > > Whenever i open my post page on localhost it shows the array of the > posts i'm getting out of my controller at the bottom of my yield. > > I can't find any code where i'm stating that i want to see it there. You may have a <%= where you meant ju

[Rails] Array at bottom of yield

2012-06-21 Thread Timen E.
Heya, Whenever i open my post page on localhost it shows the array of the posts i'm getting out of my controller at the bottom of my yield. I can't find any code where i'm stating that i want to see it there. Any thoughts? Thanks -- Posted via http://www.ruby-forum.com/. -- You received thi

Re: [Rails] Hosting of Ruby on Rails3 App

2012-06-21 Thread G S RAO
Heroku is good On 21 June 2012 13:00, Mandeep Kaur wrote: > I want to host a website using Ruby on Rails 3. Which 3 best hosts > give me web space to do that ? > Please suggest me best 3 hosting sites to develop RoR3 Website. > > -- > Mandeep Kaur > http://mandeepsimak.wordpress.com/ > > -- > Yo

[Rails] Re: How to send audio files using net/http

2012-06-21 Thread Loganathan Sellapa
HI All, Got it working using the below script. *require 'net/http' require "uri" url = "http://#{domain}:#{port}"; uri = URI.parse(url); data = File.read('fil_path') #File.read("/usr/test.amr") http = Net::HTTP.new(uri.host, uri.port) request = Net::HTTP::Post.new(uri.request_uri) request.body =

[Rails] Encode URL for a file upload

2012-06-21 Thread Avantec Van
Hi, I'm creating an file uploading application. I'm using paperclip to upload files. my upload path is "http://localhost:3000/system/uploads/uploaded_files/000/000/064/original/Cell%20phone%20ringing.mp4"; when I'm clicking on this I can see the file. But I want to encode this URL something lik

[Rails] Hosting of Ruby on Rails3 App

2012-06-21 Thread Mandeep Kaur
I want to host a website using Ruby on Rails 3. Which 3 best hosts give me web space to do that ? Please suggest me best 3 hosting sites to develop RoR3 Website. -- Mandeep Kaur http://mandeepsimak.wordpress.com/ -- You received this message because you are subscribed to the Google Groups "Ruby