Re: [Radiant] Submenu Extension in Radiant 1.0

2012-09-07 Thread Jim Gay
Ah. I see.

Well, if you look here
https://github.com/radiant/radiant/blob/master/lib/radiant/admin_ui.rb
you'll see what it has.
There is NavTab and NavSubItem but I would review what's in
TabExtensions to see how it is attempting to change how radiant works.

On Thu, Sep 6, 2012 at 3:51 PM, saalon saa...@gmail.com wrote:
 Jim,

 Thank you for the link! One question that I don't see answered in the
 documentation, regarding this line:


  Radiant::AdminUI::Tab.send :include, TabExtensions

 Which returns this failure: uninitialized constant Radiant::AdminUI::Tab

 Is there an class that's replaced  Radiant::AdminUI::Tab that we should be
 extending? I went back through the change history dor admin_ui.rb but
 couldn't find where Tab was removed or what replaced it.

 That said, I've already forked the extension and will make public any
 updates I make to this. Thank you!

 Eric


 On Thursday, September 6, 2012 3:40:01 PM UTC-4, Jim Gay wrote:

 See these notes:
 https://github.com/radiant/radiant/wiki/developer-upgrade-notes

 The upgrade should be easy if all that's needed is addressing the tab API.

 Often, when I have a problem like this, I fork the repo and push my
 changes there. That way others can benefit from the fixes too and it's
 easier for me to track. Don't just edit it in your project and call it
 a day.

 That reminds me, I need to update those upgrade notes for the latest
 version.

 On Thu, Sep 6, 2012 at 3:05 PM, saalon saa...@gmail.com wrote:
  I'm upgrading from radiant 0.8.1 to 1.0, and I'm having a problem with
  one
  of the extensions we're using. We use multi-site-extension, and it uses
  the
  submenu extension to allow users to choose which site they want scoped
  to.
  Unfortunately, submenu isn't compatible with the Tabs changes from
  Radiant
  0.9.1, and the extension hasn't been updated.
 
  I'm hoping for some guidance on what changed with Tabs and what changed
  might be needed.
 
  This is the multi-site extension we're using:
  https://github.com/spanner/radiant-multi-site-extension
  This is the submenu extension:
  https://github.com/joebushi/radiant-submenu-extension
 
  The code that's dying during initialization of the app is the attempt to
  include TabExtensions in Radiant::AdminUI::Tab, which is coming back as
  an
  uninitialized constant. What's replaced Radiant::AdminUI::Tab? Is there
  a
  different object the extensions should be included into?
 
  def activate
  Radiant::AdminUI::Tab.send :include, TabExtensions
  Radiant::AdminUI.send :include, Submenu
  ApplicationHelper.send :include, Admin::SubmenuHelper
  ApplicationController.send :include, ResourceControllerExtensions
  UserActionObserver.instance.send :add_observer!, SubmenuLink
 
  unless defined? admin.submenu_links
Radiant::AdminUI.send :include, SubmenuAdminUI
admin.submenu_link =
  Radiant::AdminUI.load_default_submenu_link_regions
  end
 
 
  Thank you!
  Eric
 



 --
 Write intention revealing code #= http://www.clean-ruby.com

 Jim Gay
 Saturn Flyer LLC
 571-403-0338



-- 
Write intention revealing code #= http://www.clean-ruby.com

Jim Gay
Saturn Flyer LLC
571-403-0338


[Radiant] undefined method `keys' for #Syck::Omap:...

2012-09-07 Thread IamNaN
Tried three times to get Radiant installed on Linode with Ruby 1.9.3-p194 
and postgres.

Using the installation and setup directions in INSTALL.md, I get the title 
error trying to populate the database with `bundle exec rake production 
db:bootstrap`.

Can you help with that?

On another note... the system requirements aren't listed anywhere that I 
can find. Rails 3 gets blown away by running `gem install radiant` (I think 
because Gemfile.lock is included in the gem). And I'm getting numerous 
deprecation warnings throughout the installation process. Radiant 
development is still active, right?


Re: [Radiant] undefined method `keys' for #Syck::Omap:...

2012-09-07 Thread Jim Gay
Can you post the actual error message so we have something to go on?

What version of rubygems do you have installed? You'll likely see
errors if it isn't near the latest. I don't recall the exact version
that fixes the Syck error.

Radiant is still currently a Rails 2 app.
Deprecation warnings are deprecation warnings. Are they causing you
some sort of problem?

On Fri, Sep 7, 2012 at 5:31 PM, IamNaN dger...@gmail.com wrote:
 Tried three times to get Radiant installed on Linode with Ruby 1.9.3-p194
 and postgres.

 Using the installation and setup directions in INSTALL.md, I get the title
 error trying to populate the database with `bundle exec rake production
 db:bootstrap`.

 Can you help with that?

 On another note... the system requirements aren't listed anywhere that I can
 find. Rails 3 gets blown away by running `gem install radiant` (I think
 because Gemfile.lock is included in the gem). And I'm getting numerous
 deprecation warnings throughout the installation process. Radiant
 development is still active, right?



-- 
Write intention revealing code #= http://www.clean-ruby.com

Jim Gay
Saturn Flyer LLC
571-403-0338