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
> > 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
20 matches
Mail list logo