> Taking 0.9 out for a test drive... here's an overview of what worked and > what didn't. > > Radiant: > radiant r9 --database sqlite3 > cd r9; rake production db:bootstrap
Hi Marshal, Based on these error messages it sounds like you're not actually running 0.9. The latest gem is still Radiant 0.8.1. To check out edge: radiant r9 -d sqlite3 cd r9 rake radiant:freeze:edge rake radiant:update rake db:bootstrap That should fix most or all of your errors. j On Apr 18, 2010, at 1:00 PM, [email protected] wrote: > Send Radiant mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.radiantcms.org/mailman/listinfo/radiant > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Radiant digest..." > > > Today's Topics: > > 1. Model Associations in Radiant? (Derek Yau) > 2. 0.9.0-rc1 and settings extension (Marshal Linfoot) > 3. 0.9.0-rc1 experience (Marshal Linfoot) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 18 Apr 2010 02:11:11 -0700 > From: Derek Yau <[email protected]> > Subject: [Radiant] Model Associations in Radiant? > To: [email protected] > Message-ID: > <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1 > > Hi everyone, > > I'm a newer developer to both Radiant and Rails - first of all want to thank > you all for making such an awesome CMS, its been a joy to work with so far > and the extensions system in particular is genius and very well > designed/implemented. > > I have a question however, related to Radiant and models which I'm hoping > someone here can answer. To illustrate my point imagine I have two entities: > > 1. Speakers (lecturers/panelists/etc.) > 2. Videos (videos of those speakers/panelists giving a lecture) > > What I need to do is be able to relate these two models in the following > way: > > - Speaker belongs_to Video > - Video has_many Speakers (eg. in the case of a panel discussion) > > Basically each Speaker will have his own page detailing things about the > speaker (name/etc.), and subsequently each lecture will have its own "Video" > page detailing things about the video (description/etc.) BUT each Video page > will also contain a list of Speakers that are featured in that video. (This > needs to reference the Speakers model) > > So far, I've gotten so far as to follow the Custom-Page-Type tutorial ( > http://wiki.github.com/radiant/radiant/creating-a-custom-page-type) which > has been helpful, and now I have two custom page types up and running. The > problem with this is that it sticks all the additional "custom fields" in > the same table as the :pages model. So any given page will have all those > columns (if it is of type Speaker, then the Video columns will be nulled > etc.) > > This is all fine and dandy... except when you want to do associations as I > mentioned above. I'm wondering is there a way to implement this properly? > What I observed from looking at the way the comments extension was done is > that a Comment < ActiveRecord::Base and then had a foreign key to the Page > model (using belongs_to). Then in the comments_extension.rb it uses the > "Page.class_eval" method to put in associations to the Page model. I then > thought that I could perhaps do something similar in my situation, but the > challenge that I have is that both of those entities MUST be page-types and > not thus inherit from < Page as opposed to purely from < ActiveRecord::Base. > > > So then I'm currently stuck there - with some sort of thought of perhaps > somehow doing... a foreign key from the "Pages" table to a new ActiveRecord > "Speakers" table which would contain all the information? And then when > setting the video, somehow pulling speakers from the Speakers model to > populate a list or something that they can choose from? In theory this > makes sense in my head, but I'm lost as to how to actually implement it > properly in Radiant/Rails. > > Any help with this would be of great help - thanks everyone! > > Sincerely, > -Derek > > > ------------------------------ > > Message: 2 > Date: Sun, 18 Apr 2010 10:57:15 -0400 > From: Marshal Linfoot <[email protected]> > Subject: [Radiant] 0.9.0-rc1 and settings extension > To: [email protected] > Message-ID: > <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1 > > I decided to take the plunge and investigate Radiant 0.9.0-rc1. Some things > worked as expected and some didn't. Here's what I encountered; hope this > might be helpful to others and/or provide information to developers and > extension writers. > > Desktop: Ubuntu Lucid Lynx, Linux 2.6.32-21-generic > > Gems: (left out ones not used by radiant) > activesupport (2.3.5) > compass (0.10.0.rc3, 0.8.17) > compass-960-plugin (0.9.13) > haml (3.0.0.beta.2, 2.2.23) > imagesize (0.1.1) > mime-types (1.16) > mysql (2.8.1) > rack (1.0.1, 1.0.0) > radiant (0.9.0, 0.8.1) > rake (0.8.7) > RedCloth (4.2.3, 4.2.2) > rmagick (2.13.1, 2.12.2) > rubygems-update (1.3.6) > sqlite3-ruby (1.2.5) > > Radiant: > radiant r9 --database sqlite3 > cd r9; rake production db:bootstrap > [answer prompts, select 1. Empty] > > Settings extension: > git clone git://github.com/squaretalent/radiant-settings-extension.git > vendor/extensions/settings > rake production radiant:extensions:settings:migrate > radiant:extensions:settings:update > > *** rake fails with "undefined method `tab' for > #<SettingsExtension:0xb6ea8e0c>" > same thing if the "script/extension install settings" command is used > instead > > Here's the trace: > mars...@vaio[~/web/r9]> rake production radiant:extensions:settings:migrate > --trace > (in /home/marshal/web/r9) > ** Invoke production (first_time) > ** Execute production > ** Invoke environment (first_time) > ** Execute environment > rake aborted! > undefined method `tab' for #<SettingsExtension:0xb6f17e4c> > /home/marshal/web/r9/vendor/extensions/settings/settings_extension.rb:29:in > `activate' > /usr/lib/ruby/gems/1.8/gems/radiant-0.9.0/lib/radiant/extension.rb:60:in > `activate' > /usr/lib/ruby/gems/1.8/gems/radiant-0.9.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:105:in > `to_proc' > /usr/lib/ruby/gems/1.8/gems/radiant-0.9.0/lib/radiant/extension_loader.rb:98:in > `each' > /usr/lib/ruby/gems/1.8/gems/radiant-0.9.0/lib/radiant/extension_loader.rb:98:in > `activate_extensions' > /usr/lib/ruby/gems/1.8/gems/radiant-0.9.0/lib/radiant/initializer.rb:184:in > `after_initialize' > /usr/lib/ruby/gems/1.8/gems/radiant-0.9.0/vendor/rails/railties/lib/initializer.rb:179:in > `process' > /usr/lib/ruby/gems/1.8/gems/radiant-0.9.0/vendor/rails/railties/lib/initializer.rb:113:in > `send' > /usr/lib/ruby/gems/1.8/gems/radiant-0.9.0/vendor/rails/railties/lib/initializer.rb:113:in > `run' > /usr/lib/ruby/gems/1.8/gems/radiant-0.9.0/lib/radiant/initializer.rb:148:in > `run' > /home/marshal/web/r9/config/environment.rb:12 > /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in > `gem_original_require' > /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' > /usr/lib/ruby/gems/1.8/gems/radiant-0.9.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in > `require' > /usr/lib/ruby/gems/1.8/gems/radiant-0.9.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in > `new_constants_in' > /usr/lib/ruby/gems/1.8/gems/radiant-0.9.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in > `require' > /usr/lib/ruby/gems/1.8/gems/radiant-0.9.0/vendor/rails/railties/lib/tasks/misc.rake:4 > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in > `invoke_with_call_chain' > /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in > `invoke_with_call_chain' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke' > /usr/lib/ruby/gems/1.8/gems/radiant-0.9.0/lib/tasks/environments.rake:10 > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in > `invoke_with_call_chain' > /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in > `invoke_with_call_chain' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in > `standard_exception_handling' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in > `standard_exception_handling' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 > /usr/bin/rake:19:in `load' > /usr/bin/rake:19 > > Any ideas? > > -- > marshal > > > ------------------------------ > > Message: 3 > Date: Sun, 18 Apr 2010 11:32:30 -0400 > From: Marshal Linfoot <[email protected]> > Subject: [Radiant] 0.9.0-rc1 experience > To: [email protected] > Message-ID: > <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1 > > Taking 0.9 out for a test drive... here's an overview of what worked and > what didn't. > > Radiant: > radiant r9 --database sqlite3 > cd r9; rake production db:bootstrap > [answer prompts, select 1. Empty] > > The extensions I tried that installed and worked as expected were (some > required a little tweaking): > > Custom Fields: > script/extension install custom_fields > > Drag: [ok but messes up paperclipped, more about this in a separate post] > git clone git://github.com/squaretalent/radiant-drag-extension.git > vendor/extensions/drag > rake production radiant:extensions:drag:migrate > radiant:extensions:drag:update > > Schedule: [anyone up to adding this into the extension registry so > "script/extension" can install it?] > git clone git://github.com/radiant/radiant-scheduler-extension.git > vendor/extensions/scheduler > rake production radiant:extensions:scheduler:migrate > radiant:extensions:scheduler:update > > Page Preview: > script/extension install page_preview > > Enkoder Tags: > script/extension install enkoder_tags > > Styles n Scripts: > script/extension install sns > > Sass filter: > *** "script/extension install" fails with: "Too many arguments" and "cd: 1: > can't cd to /tmp/sns_sass_filter" > - manual install works > git://github.com/SwankInnovations/radiant-sns-sass-filter-extension.git > vendor/extensions/sns_sass_filter > > Haml filter: > script/extension install haml_filter > > The ones that I couldn't get to work were (details in separate posts): > > Settings extension > *** rake fails with "undefined method `tab' for > #<SettingsExtension:0xb6ea8e0c>" > > Page Factory extension > *** installs without any errors but does not work correctly > - "Add Child" icon replaced with "en, add_child" text > - pop-up works but new employee page does not have proper page parts, > same default page as without the extension > > Paperclipped extension > *** installs without any errors, but "Show Assets Bucket" in odd place > (should be like "Create Custom Fields"?) > - if the Drag extension is installed either before/after > paperclipped, it messes up the Assets pop-up, can't drag n drop. > > Gallery extension > *** install task fails -- can't create gallery.yml or content_types.yml > - copied these 2 files from my production system but rake fails > with: "undefined method `tab' for #<GalleryExtension:0xb6dfdee4>" > > > PS. Great work by everyone involved, core developers and extension writers! > Thank you so much. > -- > marshal > > > ------------------------------ > > _______________________________________________ > Radiant mailing list > Post: [email protected] > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > > End of Radiant Digest, Vol 49, Issue 21 > *************************************** _______________________________________________ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ List Site: http://lists.radiantcms.org/mailman/listinfo/radiant Radiant: http://radiantcms.org Extensions: http://ext.radiantcms.org
