[Rails] Ruby On Rails Install on Win 7 32 bit error

2014-07-27 Thread rubynewbie
args: --ri --op C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/doc/act ionpack-4.1.4/ri lib --title actionpack-4.1.4 Documentation --quiet (Ruby version: 1.9.3p545 (2014-02-24) [i386-mingw32] SQLite version: 3.8.4.3 2014-04-03 16:53:12 Can someone please help? Thanks, rubynewbie -- You

[Rails] Re: ActiveRecord :dependent fails for me

2011-11-25 Thread RubyNewbie
> > Hi. I'm instantiating the movie via a finder, such as @movie = > > Movie.find(params[:id]) > > and then calling @move.delete. I've seen this issue with my running > > web application as well as any attempt using the rails console. > > > I haven't tried @movie.destroy because I don't have a befo

[Rails] Re: ActiveRecord :dependent fails for me

2011-11-22 Thread RubyNewbie
Hi. I'm instantiating the movie via a finder, such as @movie = Movie.find(params[:id]) and then calling @move.delete. I've seen this issue with my running web application as well as any attempt using the rails console. I haven't tried @movie.destroy because I don't have a before or after destroy c

[Rails] ActiveRecord :dependent fails for me

2011-11-21 Thread RubyNewbie
I have a simple has_many relationship between a Movie and its Previews. I've verified that the previews table has a foreign key to its parent record in the movies table. I've added the has_many with a :dependent => :delete_all as an option on the has_many association. The problem I'm seeing is tha

[Rails] Re: Unable to install Rails through proxy - Rails badly needs to be flexible in its installation

2011-04-20 Thread rubynewbie
On Apr 20, 12:46 pm, Frederick Cheung wrote: > On 20 Apr 2011, at 08:25, rubynewbie wrote: > > > Would appreciate a workaround for this. > > Do the install on a non hobbled computer and then copy the gems across ? Do i have to locate the gem files manually in order to zip

[Rails] Re: Unable to install Rails using Gem

2011-04-20 Thread rubynewbie
On Apr 16, 1:48 am, Bryan Crossland wrote: > On Fri, Apr 15, 2011 at 5:18 AM, Shafeeq wrote: > > > On Apr 14, 4:46 pm, Michael Pavling wrote: > > > On 14 April 2011 12:30, Shafeeq wrote: > > > > > The question is quite simple. > > > > But the answer to simple questions is frequently much more

[Rails] Re: Unable to install Rails through proxy - Rails badly needs to be flexible in its installation

2011-04-20 Thread rubynewbie
Would appreciate a workaround for this. On Apr 19, 1:58 pm, rubynewbie wrote: > Thanks Bryan. I tried this as well as Using a Fiddler as a proxy. But > I found that the downloads are being blocked based on the content by > the firewall. Generally arbitrary Software Downloads are not

[Rails] Re: Unable to install Rails through proxy - Rails badly needs to be flexible in its installation

2011-04-19 Thread rubynewbie
18, 2011 at 9:54 AM, rubynewbie wrote: > > > The problem is not inclusion of http:// in the URL(I tried without > > that). On the contrary I suspect the reason to be on how to specify > > the domain in the URL. Is my way of specifying the domain right? > > > C:\Do

[Rails] Re: Unable to install Rails through proxy

2011-04-18 Thread rubynewbie
AIN\myUserID:MyPassword@MyProxy:Port Thanks, S On Apr 18, 6:42 pm, Bryan Crossland wrote: > On Mon, Apr 18, 2011 at 4:58 AM, rubynewbie wrote: > > > > > I am new to Rails and have been facing difficulty while installing > > rails. I have already installed Ruby and RubyGems on my

[Rails] Unable to install Rails through proxy

2011-04-18 Thread rubynewbie
I am new to Rails and have been facing difficulty while installing rails. I have already installed Ruby and RubyGems on my machine by downloading the packages. But when I install Rails through RubyGems through a HTTP Proxy , I am thrown an error. Below is the details of the command and the exceptio

[Rails] ActiveRecord Polymorphic Inheritance

2009-10-05 Thread RubyNewbie
I am using RoR ActiveRecord polymorphic inheritance and was wondering if it's possible to access the base class' association methods in the invocation of either to_xml or to_json without having to depict the base class data in the serialized string. Here are my classes: # base class class Asset

[Rails] activerecord-sqlserver-adapter nvarchar datatype length

2009-08-11 Thread RubyNewbie
I've recently installed this adapter in hope that I can work with utf-8 encoding using the SQL Server nvarchar data type. I've installed and followed the steps detailed at this uri: http://github.com/adzap/rails-sqlserver-adapter/tree/master I have this following migration class definition: clas

[Rails] How to specify ActiveRecord's to_json encoding

2009-08-07 Thread RubyNewbie
Question: Hi, our company is using Ruby 1.8.6 with Rails 2.2.2. Does anyone know we can explicitly specify what encoding to use when calling to_json() or to_xml() methods? Problem: We have some multibyte characters in our database. For example we have a table with a name column that has this Fr

[Rails] Ruby 1.9.1

2009-08-05 Thread RubyNewbie
Our company is running Ruby 1.8.6 patch 111. Is it possible to install Ruby 1.9.1 on the same machines to test the same application? If so what is the recommended strategy for having side-by-side installations and how would you specify which version of Ruby and Rails that gets started up? Any i

[Rails] Correctly upgrading ruby on MS Windows

2009-08-03 Thread RubyNewbie
Hi, I am looking for some guidance on the correct and/or most streamlined way to upgrade Ruby. Presently I am on Ruby version 1.8.6 patch level 111. I am looking to upgrade to version 1.8.6 patch level 287. When I tried downloading the ruby-1.8.6-p287-i386-mswin32.zip file I unzipped it and was

[Rails] YAML config files with environment specific settings

2009-03-20 Thread RubyNewbie
I need to store settings by environment but started off simply with my config file at: \config\config.yml. The only setting I had was this: attachment_volume: \\attach\transfers With this, cod I'm able to load the file within my initializer and reference it just fine from calling code within an

[Rails] Re: Problem registering Mime type

2009-02-24 Thread RubyNewbie
Asylam, I have been facing the same problem and came across your post and solution. Thank you for posting your solution. I was suprised that the Ruby runtime even executes code outside of the Initialize method on the environment.rb. I thought that was the only event handler it invoked within en

[Rails] Re: Nested serialization with to_json and to_xml with array and hash element

2009-01-20 Thread RubyNewbie
The error description above was slightly truncated. The full error is this: You have a nil object when you didn't expect it! The error occurred while evaluating nil.macro --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

[Rails] Nested serialization with to_json and to_xml with array and hash element

2009-01-20 Thread RubyNewbie
Title: Nested serialization with to_json and to_xml with array and hash element class Person < ActiveRecord::Base has_one :address has_one :job def office() return "Executive_Suite" end end class Address < ActiveRecord::Base belongs_to :p

[Rails] to_json() does not have behave like to_xml builder and block support

2008-11-04 Thread RubyNewbie
Our Rails application needs to support both xml and json formats. In some cases, we need to return custom XML that spans several objects and associations. I've been able to write custom to_xml methods that use the builder and block functionality. When trying the same thing with the to_json meth