[Radiant] Accessing Rails generators from a Radiant app
I am just getting started on a new radiant site. I generated it via the radiant shell command (v0.9.1 gem). I would like to use devise as the authentication mechanism for the site. I came across a wiki page explaining how to do it: https://github.com/radiant/radiant/wiki/Using-Devise-as-an-authentication-system-for-Radiant-end-users The wiki page calls for following the devise instructions for gem installation and then generator usage for creating a custom user model (along with other instructions for setup). My problem is that I can't seem to access the devise_install generator (or any other generator that isn't included with radiant). When I run script/generate, I see: Installed Generators Builtin: extension, extension_controller, extension_mailer, extension_migration, extension_model, instance, language_extension None of either the Rails generators or generators provided by gems I have installed in my environment are visible to me. Is there some step I need to do to be able to see non-radiant generators? Thanks in advance, --Mario
Re: [Radiant] best code syntax highlighting solution
On Wed, Dec 8, 2010 at 1:39 AM, craayzie flesh...@gmail.com wrote: I've begun to explore Radiant as a publishing/blogging platform. At the moment, I'm trying to nail down is how to best format command-line output or code as the majority of the content published will be of a technical nature. Can someone point me in the right direction of what I should use to get the desired affect :P I found http://alexgorbatchev.com/SyntaxHighlighter/ which is a JavaScript-based solution. Unfortunately it doesn't appear to support formatting/highlighting command-line output. What's the best Radiant filter / JS library / some-other-solution out there for both command-line output and code syntax highlighting? i like kramdown + coderay.
Re: [Radiant] Contact form debugging as Radiant new user learning opportunity...
On Wed, Dec 8, 2010 at 9:55 AM, rosslaird r...@rosslaird.com wrote: I am a new user to Radiant (coming from Drupal), and so far I've found Radiant to be a great application. I have also received excellent help from the community (here and on github), and this is also great. (Actually, a strong and helpful community is the most important thing of all.) I have almost finished rebuilding my website in Radiant, but I just need to get the contact form working properly. I have installed and setup the mailer extension and the contact form. The form seems to work, but does not redirect me to the thanks page. Also I do not receive the email (I'm working from localhost at the moment, on Ubuntu, so the fact that I do not get the email is not overly surprising. It could be caused by a number of things, though the mailq is empty). The log, however, says Sent mail to em...@address.com, so at least something is working. I am in the process now of debugging this, and I've started to look at various posts that discuss validation, changing environments.rb, and so on. Before I wade too deeply into this process, I thought I'd ask for a bit of help. I don't want to do anything to break the whole system. So: 1. I've seen in various posts that I should add some email info to environments.rb. There is currently no reference to such things in that file. In the following two tutorials (let's hope the url's don't get scrubbed here), different methods of adding email details are offered: http://railsforum.com/viewtopic.php?id=404 http://wiki.rubyonrails.org/rails/pages/HowToSendEmailsWithActionMailer Which of these should I use, or should I do something else? For now, I have simply changed one line in environment.rb, as suggested by the mailer documentation. I changed this: config.frameworks -= [ :action_mailer ] To this: config.frameworks -= [ ] So, I haven't added mailing details (smtp, user, and so on) anywhere. Perhaps that's the place to start. Suggestions most welcome. does https://github.com/radiant/radiant/wiki/mailer-extension help at all?
[Radiant] Re: Contact form debugging as Radiant new user learning opportunity...
Yes, that's the mailer extension that I am using. I installed it by (precisely) following the instructions on github and in the manual. On Dec 8, 8:08 am, john muhl johnm...@gmail.com wrote: On Wed, Dec 8, 2010 at 9:55 AM, rosslaird r...@rosslaird.com wrote: I am a new user to Radiant (coming from Drupal), and so far I've found Radiant to be a great application. I have also received excellent help from the community (here and on github), and this is also great. (Actually, a strong and helpful community is the most important thing of all.) I have almost finished rebuilding my website in Radiant, but I just need to get the contact form working properly. I have installed and setup the mailer extension and the contact form. The form seems to work, but does not redirect me to the thanks page. Also I do not receive the email (I'm working from localhost at the moment, on Ubuntu, so the fact that I do not get the email is not overly surprising. It could be caused by a number of things, though the mailq is empty). The log, however, says Sent mail to em...@address.com, so at least something is working. I am in the process now of debugging this, and I've started to look at various posts that discuss validation, changing environments.rb, and so on. Before I wade too deeply into this process, I thought I'd ask for a bit of help. I don't want to do anything to break the whole system. So: 1. I've seen in various posts that I should add some email info to environments.rb. There is currently no reference to such things in that file. In the following two tutorials (let's hope the url's don't get scrubbed here), different methods of adding email details are offered: http://railsforum.com/viewtopic.php?id=404 http://wiki.rubyonrails.org/rails/pages/HowToSendEmailsWithActionMailer Which of these should I use, or should I do something else? For now, I have simply changed one line in environment.rb, as suggested by the mailer documentation. I changed this: config.frameworks -= [ :action_mailer ] To this: config.frameworks -= [ ] So, I haven't added mailing details (smtp, user, and so on) anywhere. Perhaps that's the place to start. Suggestions most welcome. doeshttps://github.com/radiant/radiant/wiki/mailer-extensionhelp at all?
Re: [Radiant] best code syntax highlighting solution
Thanks John - will take a look. Do you have any public pages you can share as examples?
Re: [Radiant] best code syntax highlighting solution
http://johnmuhl.com/tmp/kramdown-coderay the kramdown looks like (replace - with space): def meth options --p options end {:lang=ruby} just a standard markdown code block followed by {:lang=lang} http://coderay.rubychan.de/ list the supported languages. On Wed, Dec 8, 2010 at 12:37 PM, Fima Leshinsky flesh...@gmail.com wrote: Thanks John - will take a look. Do you have any public pages you can share as examples?
[Radiant] Re: Contact form debugging as Radiant new user learning opportunity...
I migrated my localhost Radiant setup to Dreamhost (holy smokes was that very easy, compared to Drupal!), and the contact form is now working perfectly. It must have been a behind-the-scenes email delivery issue. Thanks for the help, though. On Dec 8, 9:13 am, rosslaird r...@rosslaird.com wrote: Yes, that's the mailer extension that I am using. I installed it by (precisely) following the instructions on github and in the manual. On Dec 8, 8:08 am, john muhl johnm...@gmail.com wrote: On Wed, Dec 8, 2010 at 9:55 AM, rosslaird r...@rosslaird.com wrote: I am a new user to Radiant (coming from Drupal), and so far I've found Radiant to be a great application. I have also received excellent help from the community (here and on github), and this is also great. (Actually, a strong and helpful community is the most important thing of all.) I have almost finished rebuilding my website in Radiant, but I just need to get the contact form working properly. I have installed and setup the mailer extension and the contact form. The form seems to work, but does not redirect me to the thanks page. Also I do not receive the email (I'm working from localhost at the moment, on Ubuntu, so the fact that I do not get the email is not overly surprising. It could be caused by a number of things, though the mailq is empty). The log, however, says Sent mail to em...@address.com, so at least something is working. I am in the process now of debugging this, and I've started to look at various posts that discuss validation, changing environments.rb, and so on. Before I wade too deeply into this process, I thought I'd ask for a bit of help. I don't want to do anything to break the whole system. So: 1. I've seen in various posts that I should add some email info to environments.rb. There is currently no reference to such things in that file. In the following two tutorials (let's hope the url's don't get scrubbed here), different methods of adding email details are offered: http://railsforum.com/viewtopic.php?id=404 http://wiki.rubyonrails.org/rails/pages/HowToSendEmailsWithActionMailer Which of these should I use, or should I do something else? For now, I have simply changed one line in environment.rb, as suggested by the mailer documentation. I changed this: config.frameworks -= [ :action_mailer ] To this: config.frameworks -= [ ] So, I haven't added mailing details (smtp, user, and so on) anywhere. Perhaps that's the place to start. Suggestions most welcome. doeshttps://github.com/radiant/radiant/wiki/mailer-extensionhelpat all?
[Radiant] Re: Installation of Radiant on Engine Yard
You have to add the extension code to your git repo. Then it's just part of your app and EY will pick it all up every time you ship your app. On Nov 3, 10:59 am, wlai will@gmail.com wrote: I'm new toRadiant, and I'm wondering if anyone has done aRadiant installation atEngineYard. I've gotten the basicRadiantinstall setup, but I'm unsure how to install any of the extensions. For example, under vednor, there is a gems subdirectory, a radiant subdirectory, but no extensions. Where would I installRadiantextensions? I'm also used to just doing git clone url andEngineYard'sgit isn't compiled with curl, so it can't fetch the extensions directly from github. Any help appreciated. Thanks.