Re: [Radiant] Redirecting a user after login
Hi Joshua, thank you for getting back! I am not using any authentication library or plugin. I was hoping to use the user and session model that Radiant provides, but I may be missing something, or maybe the Rails way to do it would be something else? Again, any pointers would be appreciated. Thanks! Hans On Wed, Sep 14, 2011 at 3:25 AM, Joshua Jose Pecson wrote: > Did you use a plugin or gem in your login? or you created your own?...I'm > using AuthLogic as a solution to that I just need to put require_user in my > Application Controller. Look at this link: > https://github.com/binarylogic/authlogic_example > > 2011/9/14 Hans Hübner >> >> Hi, >> >> I'm new to Rails, and I may be approaching this from the wrong angle: >> >> I am running an internal blog using radiant CMS which I use for daily >> status reports. In order to make posting as painless as possible, I >> have created a HTML form that creates a new page with several hidden >> fields (for title, slug, breadcrumb) initialized by client-side >> javascript. Only a textarea and a submit button is presented to the >> user, and the content is automatically considered to be markdown. The >> Javascript also checks that a authenticity_token is present (rendered >> into the page by a custom extension). >> >> This works well if I am logged in. If I am not logged in, I would >> like to be redirected to the /admin/login (?) page by my JavaScript >> and then back to the custom page. What would be an easy way to achive >> that? Should I rather create my own login page? >> >> Any hints, pointers, guidance would be greatly appreciated. >> >> Thanks, >> Hans >
[Radiant] Re: Need help with 1.0 rc2, member extension on Ubuntu 10+passenger+apache
Just a note: I resolved my issues by moving to nginx/mongrel. No problems with member extension afterwards. Thank you to all to replied! On Sep 12, 7:07 pm, James Martens wrote: > Yup tried that. Still; had I not - excellent suggestion. Thanks john! > > On Sep 12, 7:01 pm, Walter Lee Davis wrote: > > > > > > > > > On Sep 12, 2011, at 7:40 PM, john wrote: > > > > On Monday, September 12, 2011 6:23:04 PM UTC-5, James Martens wrote: > > > Is there any way to see better output from passenger? I know it > > > produces nice looking 500 errors to help trace things, and normally > > > that is how I solve these issues, but I can't seem to get a trace of > > > where things are going wrong... > > > > you could try using `script/server` to see if you get more helpful > > > debugging output. > > > In the OP, he said that he had no issues whatsoever when running it > > under Webrick. > > > Walter
Re: [Radiant] Redirecting a user after login
Did you use a plugin or gem in your login? or you created your own?...I'm using AuthLogic as a solution to that I just need to put require_user in my Application Controller. Look at this link: https://github.com/binarylogic/authlogic_example 2011/9/14 Hans Hübner > Hi, > > I'm new to Rails, and I may be approaching this from the wrong angle: > > I am running an internal blog using radiant CMS which I use for daily > status reports. In order to make posting as painless as possible, I > have created a HTML form that creates a new page with several hidden > fields (for title, slug, breadcrumb) initialized by client-side > javascript. Only a textarea and a submit button is presented to the > user, and the content is automatically considered to be markdown. The > Javascript also checks that a authenticity_token is present (rendered > into the page by a custom extension). > > This works well if I am logged in. If I am not logged in, I would > like to be redirected to the /admin/login (?) page by my JavaScript > and then back to the custom page. What would be an easy way to achive > that? Should I rather create my own login page? > > Any hints, pointers, guidance would be greatly appreciated. > > Thanks, > Hans
[Radiant] Redirecting a user after login
Hi, I'm new to Rails, and I may be approaching this from the wrong angle: I am running an internal blog using radiant CMS which I use for daily status reports. In order to make posting as painless as possible, I have created a HTML form that creates a new page with several hidden fields (for title, slug, breadcrumb) initialized by client-side javascript. Only a textarea and a submit button is presented to the user, and the content is automatically considered to be markdown. The Javascript also checks that a authenticity_token is present (rendered into the page by a custom extension). This works well if I am logged in. If I am not logged in, I would like to be redirected to the /admin/login (?) page by my JavaScript and then back to the custom page. What would be an easy way to achive that? Should I rather create my own login page? Any hints, pointers, guidance would be greatly appreciated. Thanks, Hans
[Radiant] Re: Radiant RC2 - Assets - Uploading a Video Error
Another note: if I create a new blank RC2 radiant app, do NOTHING other than get it running with no extensions installed, I still get the same error message, so it seems that something is not being installed or configured properly during the install process... On Sep 13, 11:22 am, James Martens wrote: > Hi again radiant peeps. > > Another issue has cropped up for me on RC2. > In assets, I am trying to upload a video, but I am getting a very > strange error (occurs in both development and production). The error > happens as soon as I click the create asset button and appears to be > in the post process phase: > > MissingSourceFile (no such file to load -- /Users/jaemo/projects/ > family_justice/lib/paperclip_processors/frame_grab.rb): > paperclip (2.3.16) lib/paperclip.rb:114:in `load_processor' > paperclip (2.3.16) lib/paperclip.rb:104:in `processor' > paperclip (2.3.16) lib/paperclip/attachment.rb:359:in > `post_process_styles' > paperclip (2.3.16) lib/paperclip/attachment.rb:358:in `each' > paperclip (2.3.16) lib/paperclip/attachment.rb:358:in `inject' > paperclip (2.3.16) lib/paperclip/attachment.rb:358:in > `post_process_styles' > paperclip (2.3.16) lib/paperclip/attachment.rb:354:in > `post_process_styles' > paperclip (2.3.16) lib/paperclip/attachment.rb:348:in `post_process' > paperclip (2.3.16) lib/paperclip/callback_compatibility.rb:23:in > `call' > paperclip (2.3.16) lib/paperclip/callback_compatibility.rb:23:in > `run_paperclip_callbacks' > paperclip (2.3.16) lib/paperclip/attachment.rb:347:in `post_process' > paperclip (2.3.16) lib/paperclip/callback_compatibility.rb:23:in > `call' > paperclip (2.3.16) lib/paperclip/callback_compatibility.rb:23:in > `run_paperclip_callbacks' > paperclip (2.3.16) lib/paperclip/attachment.rb:346:in `post_process' > paperclip (2.3.16) lib/paperclip/attachment.rb:114:in `assign' > paperclip (2.3.16) lib/paperclip.rb:279:in `asset=' > /Users/jaemo/.rvm/gems/ruby-1.8.7-p174@family_justice/gems/ > radiant-1.0.0.rc2/vendor/extensions/clipped/app/controllers/admin/ > assets_controller.rb:28:in `create' > compass (0.10.6) lib/compass/app_integration/rails/actionpack2/ > action_controller.rb:7:in `process' > haml (3.0.25) rails/./lib/sass/plugin/rack.rb:41:in `call' > /Users/jaemo/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/webrick/ > httpserver.rb:104:in `service' > /Users/jaemo/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/webrick/ > httpserver.rb:65:in `run' > /Users/jaemo/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/webrick/ > server.rb:173:in `start_thread' > /Users/jaemo/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/webrick/ > server.rb:162:in `start' > /Users/jaemo/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/webrick/ > server.rb:162:in `start_thread' > /Users/jaemo/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/webrick/ > server.rb:95:in `start' > /Users/jaemo/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/webrick/ > server.rb:92:in `each' > /Users/jaemo/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/webrick/ > server.rb:92:in `start' > /Users/jaemo/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/webrick/ > server.rb:23:in `start' > /Users/jaemo/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/webrick/ > server.rb:82:in `start' > > I assume frame_grab.rb is meant to take a thumbnail screencap of the > video. I cannot find any reference to this file anywhere on the > googles, so hoping someone here has some info or insight > > Happy Tuesday! > -James
[Radiant] Re: Radiant RC2 - Assets - Uploading a Video Error
Also worth noting: the folder /lib/paperclip_processors/ is NON- EXISTANT on my system. Not sure if that was supposed to get set up during install or what... On Sep 13, 11:22 am, James Martens wrote: > Hi again radiant peeps. > > Another issue has cropped up for me on RC2. > In assets, I am trying to upload a video, but I am getting a very > strange error (occurs in both development and production). The error > happens as soon as I click the create asset button and appears to be > in the post process phase: > > MissingSourceFile (no such file to load -- /Users/jaemo/projects/ > family_justice/lib/paperclip_processors/frame_grab.rb): > paperclip (2.3.16) lib/paperclip.rb:114:in `load_processor' > paperclip (2.3.16) lib/paperclip.rb:104:in `processor' > paperclip (2.3.16) lib/paperclip/attachment.rb:359:in > `post_process_styles' > paperclip (2.3.16) lib/paperclip/attachment.rb:358:in `each' > paperclip (2.3.16) lib/paperclip/attachment.rb:358:in `inject' > paperclip (2.3.16) lib/paperclip/attachment.rb:358:in > `post_process_styles' > paperclip (2.3.16) lib/paperclip/attachment.rb:354:in > `post_process_styles' > paperclip (2.3.16) lib/paperclip/attachment.rb:348:in `post_process' > paperclip (2.3.16) lib/paperclip/callback_compatibility.rb:23:in > `call' > paperclip (2.3.16) lib/paperclip/callback_compatibility.rb:23:in > `run_paperclip_callbacks' > paperclip (2.3.16) lib/paperclip/attachment.rb:347:in `post_process' > paperclip (2.3.16) lib/paperclip/callback_compatibility.rb:23:in > `call' > paperclip (2.3.16) lib/paperclip/callback_compatibility.rb:23:in > `run_paperclip_callbacks' > paperclip (2.3.16) lib/paperclip/attachment.rb:346:in `post_process' > paperclip (2.3.16) lib/paperclip/attachment.rb:114:in `assign' > paperclip (2.3.16) lib/paperclip.rb:279:in `asset=' > /Users/jaemo/.rvm/gems/ruby-1.8.7-p174@family_justice/gems/ > radiant-1.0.0.rc2/vendor/extensions/clipped/app/controllers/admin/ > assets_controller.rb:28:in `create' > compass (0.10.6) lib/compass/app_integration/rails/actionpack2/ > action_controller.rb:7:in `process' > haml (3.0.25) rails/./lib/sass/plugin/rack.rb:41:in `call' > /Users/jaemo/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/webrick/ > httpserver.rb:104:in `service' > /Users/jaemo/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/webrick/ > httpserver.rb:65:in `run' > /Users/jaemo/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/webrick/ > server.rb:173:in `start_thread' > /Users/jaemo/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/webrick/ > server.rb:162:in `start' > /Users/jaemo/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/webrick/ > server.rb:162:in `start_thread' > /Users/jaemo/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/webrick/ > server.rb:95:in `start' > /Users/jaemo/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/webrick/ > server.rb:92:in `each' > /Users/jaemo/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/webrick/ > server.rb:92:in `start' > /Users/jaemo/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/webrick/ > server.rb:23:in `start' > /Users/jaemo/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/webrick/ > server.rb:82:in `start' > > I assume frame_grab.rb is meant to take a thumbnail screencap of the > video. I cannot find any reference to this file anywhere on the > googles, so hoping someone here has some info or insight > > Happy Tuesday! > -James
[Radiant] Radiant RC2 - Assets - Uploading a Video Error
Hi again radiant peeps. Another issue has cropped up for me on RC2. In assets, I am trying to upload a video, but I am getting a very strange error (occurs in both development and production). The error happens as soon as I click the create asset button and appears to be in the post process phase: MissingSourceFile (no such file to load -- /Users/jaemo/projects/ family_justice/lib/paperclip_processors/frame_grab.rb): paperclip (2.3.16) lib/paperclip.rb:114:in `load_processor' paperclip (2.3.16) lib/paperclip.rb:104:in `processor' paperclip (2.3.16) lib/paperclip/attachment.rb:359:in `post_process_styles' paperclip (2.3.16) lib/paperclip/attachment.rb:358:in `each' paperclip (2.3.16) lib/paperclip/attachment.rb:358:in `inject' paperclip (2.3.16) lib/paperclip/attachment.rb:358:in `post_process_styles' paperclip (2.3.16) lib/paperclip/attachment.rb:354:in `post_process_styles' paperclip (2.3.16) lib/paperclip/attachment.rb:348:in `post_process' paperclip (2.3.16) lib/paperclip/callback_compatibility.rb:23:in `call' paperclip (2.3.16) lib/paperclip/callback_compatibility.rb:23:in `run_paperclip_callbacks' paperclip (2.3.16) lib/paperclip/attachment.rb:347:in `post_process' paperclip (2.3.16) lib/paperclip/callback_compatibility.rb:23:in `call' paperclip (2.3.16) lib/paperclip/callback_compatibility.rb:23:in `run_paperclip_callbacks' paperclip (2.3.16) lib/paperclip/attachment.rb:346:in `post_process' paperclip (2.3.16) lib/paperclip/attachment.rb:114:in `assign' paperclip (2.3.16) lib/paperclip.rb:279:in `asset=' /Users/jaemo/.rvm/gems/ruby-1.8.7-p174@family_justice/gems/ radiant-1.0.0.rc2/vendor/extensions/clipped/app/controllers/admin/ assets_controller.rb:28:in `create' compass (0.10.6) lib/compass/app_integration/rails/actionpack2/ action_controller.rb:7:in `process' haml (3.0.25) rails/./lib/sass/plugin/rack.rb:41:in `call' /Users/jaemo/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/webrick/ httpserver.rb:104:in `service' /Users/jaemo/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/webrick/ httpserver.rb:65:in `run' /Users/jaemo/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/webrick/ server.rb:173:in `start_thread' /Users/jaemo/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/webrick/ server.rb:162:in `start' /Users/jaemo/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/webrick/ server.rb:162:in `start_thread' /Users/jaemo/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/webrick/ server.rb:95:in `start' /Users/jaemo/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/webrick/ server.rb:92:in `each' /Users/jaemo/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/webrick/ server.rb:92:in `start' /Users/jaemo/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/webrick/ server.rb:23:in `start' /Users/jaemo/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/1.8/webrick/ server.rb:82:in `start' I assume frame_grab.rb is meant to take a thumbnail screencap of the video. I cannot find any reference to this file anywhere on the googles, so hoping someone here has some info or insight Happy Tuesday! -James