[Radiant] Rails app to Radiant extension: problem - app already has User model
Hi, I want to move my Rails app to a radiant extension, as it makes it so much simpler to share layouts and things with my existing controllers. However, there is a problem: the Rails app already has an Authlogic based User model. It would conflict with Radiant's one. Can anyone tell me a solution to how I can make the 2 co-exist easily without going in and rewriting either the app or Radiant to change one of the User model's names? If it isn't possible, I'm just going to have to make them separate apps, and integrate them some other way. Thanks ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Rails app to Radiant extension: problem - app already has User model
Renaming your app's user model would seem like a very clean and easy way of doing things. I don't see any way of doing things without renaming your app's user model. The only alternative would be to drop it and patch radiant's user model with your changes. That's likely to be more trouble than it's worth, and the only potential advantage it brings you is that radiant editors can automatically become app editors and vice versa. Just call your apps user model Person. -Arthur ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Cucumber Newbie
Hi, I'm pretty new to using cucumber, and until today I've never tried it with radiant. I was hoping to build some new extensions using it, however I've come up against a road block. I'm running on the radiantcms edge and using the following gems and their dependencies cucumber 0.5.1 cucumber-rails 0.2.3 The error I'm getting this error uninitialized constant Cucumber::Rails (NameError) /Users/johnpolling/Sites/theled/vendor/radiant/vendor/rails/activesupport/lib/active_support/dependencies.rb:443:in `load_missing_constant' /Users/johnpolling/Sites/theled/vendor/radiant/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /Users/johnpolling/Sites/theled/vendor/radiant/features/support/dataset.rb:1 /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `polyglot_original_require' /Library/Ruby/Gems/1.8/gems/polyglot-0.2.9/lib/polyglot.rb:70:in `require' /Users/johnpolling/Sites/theled/vendor/radiant/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' ./features/support/env.rb:7 ./features/support/env.rb:7:in `each' ./features/support/env.rb:7 Has anyone else had this problem. Do I need to be using an earlier version of cucumber? Is there a special way to create extensions to work with cucumber? Thanks John ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Cucumber Newbie
John, Sorry, we haven't kept up with Cucumber's changes very well. The stories are currently broken on edge. There's a Saturday Hack Day later this month where we'll probably resolve that. Sean On 1/10/10 5:53 AM, John Polling wrote: Hi, I'm pretty new to using cucumber, and until today I've never tried it with radiant. I was hoping to build some new extensions using it, however I've come up against a road block. I'm running on the radiantcms edge and using the following gems and their dependencies cucumber 0.5.1 cucumber-rails 0.2.3 The error I'm getting this error uninitialized constant Cucumber::Rails (NameError) /Users/johnpolling/Sites/theled/vendor/radiant/vendor/rails/activesupport/lib/active_support/dependencies.rb:443:in `load_missing_constant' /Users/johnpolling/Sites/theled/vendor/radiant/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /Users/johnpolling/Sites/theled/vendor/radiant/features/support/dataset.rb:1 /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `polyglot_original_require' /Library/Ruby/Gems/1.8/gems/polyglot-0.2.9/lib/polyglot.rb:70:in `require' /Users/johnpolling/Sites/theled/vendor/radiant/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' ./features/support/env.rb:7 ./features/support/env.rb:7:in `each' ./features/support/env.rb:7 Has anyone else had this problem. Do I need to be using an earlier version of cucumber? Is there a special way to create extensions to work with cucumber? Thanks John ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Cucumber Newbie
Ok, at least it's not something stupid I'm doing! :) Is there a simple around this, so I can use cucumber for my own extension writing? Thanks John On 10 Jan 2010, at 14:41, Sean Cribbs seancri...@gmail.com wrote: John, Sorry, we haven't kept up with Cucumber's changes very well. The stories are currently broken on edge. There's a Saturday Hack Day later this month where we'll probably resolve that. Sean On 1/10/10 5:53 AM, John Polling wrote: Hi, I'm pretty new to using cucumber, and until today I've never tried it with radiant. I was hoping to build some new extensions using it, however I've come up against a road block. I'm running on the radiantcms edge and using the following gems and their dependencies cucumber 0.5.1 cucumber-rails 0.2.3 The error I'm getting this error uninitialized constant Cucumber::Rails (NameError) /Users/johnpolling/Sites/theled/vendor/radiant/vendor/rails/ activesupport/lib/active_support/dependencies.rb:443:in `load_missing_constant' /Users/johnpolling/Sites/theled/vendor/radiant/vendor/rails/ activesupport/lib/active_support/dependencies.rb:80:in `const_missing' /Users/johnpolling/Sites/theled/vendor/radiant/features/support/ dataset.rb:1 /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `polyglot_original_require' /Library/Ruby/Gems/1.8/gems/polyglot-0.2.9/lib/polyglot.rb:70:in `require' /Users/johnpolling/Sites/theled/vendor/radiant/vendor/rails/ activesupport/lib/active_support/dependencies.rb:158:in `require' ./features/support/env.rb:7 ./features/support/env.rb:7:in `each' ./features/support/env.rb:7 Has anyone else had this problem. Do I need to be using an earlier version of cucumber? Is there a special way to create extensions to work with cucumber? Thanks John ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Rails app to Radiant extension: problem - app already has User model
2010/1/10 Arthur Gunn art...@gunn.co.nz: Renaming your app's user model would seem like a very clean and easy way of doing things. I don't see any way of doing things without renaming your app's user model. The only alternative would be to drop it and patch radiant's user model with your changes. That's likely to be more trouble than it's worth, and the only potential advantage it brings you is that radiant editors can automatically become app editors and vice versa. Just call your apps user model Person. And then go and rename it in every single location, from models to controllers, specs and selenium tests.. I was hoping for another way, as that is going to take a long, long time, and be potentially very fiddly and error-prone. Shouldn't Radiant be using its own namespace for everything? I suppose I could say the same thing about my app, why didn't I use my own namespace? I think I will just host the two apps separately, and use ActiveResource or something to make them communicate when I have to, and get my app to 'download' the layout from Radiant or vice versa. ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Show the Username in the front end for logged-in user of the radiant cms
Hi, In the front end i need to show the *Username* for logged-in user of the radiant. So is their any *radius tag* using which i can show this on webpage by accessing user session ? If no what is the possible way to do this ? -- Thank you. Regards, Ninad ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Rails app to Radiant extension: problem - app already has User model
Project-wide find and replace? User — Person users — people etc. Just do it case-sensitively. This worked fine for me. -Arthur ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Show the Username in the front end for logged-in user of the radiant cms
You mention front end so I assume you aren't referring to the Radiant Admin pages. What kind of user are we talking about here? A Radiant user (someone who can log into the admin part of your site) or a site user (presumably you are using an extension to allow end users to register and log into the front end of your site). -Chris On 1/10/2010 10:41 PM, Ninad Pol wrote: Hi, In the front end i need to show the *Username* for logged-in user of the radiant. So is their any *radius tag* using which i can show this on webpage by accessing user session ? If no what is the possible way to do this ? ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant