[Nitro] nitro 0.40.0 changes?

George Moschovitis george.moschovitis at gmail.com
Wed Nov 15 05:18:47 EST 2006


please post your run.rb

for more details, have a look at the run.rb's or app.rbs in the
examples and  flare/spark.

regards,
George.

On 11/15/06, Matt Rose <mattrose at folkwolf.net> wrote:
> I just installed the new nitro, and it absolutely broke the app I was
> working on.
>
> I tried running it as is, and I got this error:
>
> matt-roses-computer:~/ruby/start mattrose$ nitro
> /Users/mattrose/ruby/start/model.rb:2: undefined method
> `prop_accessor' for Master:Class (NoMethodError)
>          from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
> custom_require.rb:27:in `gem_original_require'
>          from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
> custom_require.rb:27:in `require'
>          from run.rb:10
>
> Then, when I changed all of the prop_accessor to attr_accessor, I get
> this error instead, which I don't entirely get.
>
> matt-roses-computer:~/ruby/start mattrose$ nitro
> /Users/mattrose/ruby/start/model.rb:28: uninitialized constant
> User::Article (NameError)
>          from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
> custom_require.rb:27:in `gem_original_require'
>          from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
> custom_require.rb:27:in `require'
>          from run.rb:10
>
> Here's the code.  Can someone tell me what I'm doing wrong?  This
> used to work fine.
>
> class Blog
>         attr_accessor :title, String
>         attr_accessor :description, String
>         has_many :users, User
>         has_many :articles, Article
>         def initialize(title,description)
>           @title, at description = title,description
>         end
>         def to_s
>           @title
>         end
> end
> class User
>         attr_accessor :username
>         attr_accessor :password
>         has_many :articles, Article
>         belongs_to :blog, Blog
>         def initialize(username,password,blog)
>           @username, at password, at blog_oid = username,password,blog
>         end
>         def to_s
>           @username
>         end
> end
>
> class Article
>    attr_accessor :title
>    attr_accessor :body
>    #has_many :comments
>    belongs_to :blog, Blog
>    belongs_to :user, User
>    def initialize(title,body,user,blog)
>      @title, at body, at user_oid, at blog_oid = title,body,user,blog
>    end
>    def to_s
>      @title
>    end
> end
>
> Matt
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>


-- 
http://gmosx.com/blog
http://nitroproject.org


More information about the Nitro-general mailing list