> open(' http://chart....') do |chart| > File.open('chart.png', 'w') {|f| f.write chart.read } > end This is wonderful, I knew nothing of open-uri. However, I cannot seem to get it pull an image. Using the Google link above, which produces a PNG image, I get the error "bad URI(is not URI?)". Looking at the API for open-uri, I could not find any information about images. I played around with it, I can beautifully retrieve web pages and save them to disk, but what about images? Thanks for the help! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Read More…
You should redefine UsersController#object method via class_eval to get public user profiles. On Mar 18, 9:21 pm, Ryan Michael <keri...@gmail.com> wrote: > I see what you mean about 'other places' - I commented out the > UsersController permission in the spree gem, the before_filters in the > users_controller.rb in the gem, and re-updated spree in my app and I'm > still being redirected to the login page - any idea what's triggering > it? > > -Ryan > > On Mar 18, 11:47 am, Roman Smirnov <pom...@gmail.com> wrote: > > > There is no problem to redefine permissions, try for example: > > 'Admin::BaseController': > > permission1: > > roles : [admin] > > options : > > except : [show, index] > > > But showing of view other people's profiles disallowed also in another > > place ;-) > > > On Mar 18, 4:15 am, Ryan Michael <keri...@gmail.com> wrote: > > > > I'd like to have public user profiles for a site I'm working on, and I > > > don't see any way to undo the permissions setting in config/ > > > spree_permissions.yml other than changing the file in the Spree gem. > > > > Please tell me there's a better way, and if not - wouldn't it be > > > better to put this in the default_theme so it doesn't require > > > monkeying with libraries? > > > > -Ryan > > -- You received this message because you are subscribed to the Google Groups "Spree" group. To post to this group, send email to spree-user@googlegroups.com. To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.
Read More…
Hi Sean, I haven't had much luck with PPE, but it is more a matter of wanting to use Paypal as the primary payment provider (due to problems with providers in NZ), in a earlier message you mentioned explaining the different Paypal options, but from what I understand PPE requires users to have a Paypal Account, versus PPS which allows check out with just a credit card. This could quite possibly be the product of me not quite understanding the different Paypal offerings, but as always appreciate any insight, Regards, Cameron Priest On Mar 18, 11:50 pm, Sean Schofield <s...@railsdog.com> wrote: > Why not use PPE? It seems to accomplish the same thing and the > extension for it is much further along (supports 0.10.x) > > Sean Schofield > > ------------------------------------------- > Rails Dog LLC > 2 Wisconsin Circle, Suite 700 > Chevy Chase, MD 20815 > voice: (301)560-2000 > ------------------------------------------- > > On Wed, Mar 17, 2010 at 11:18 PM, Cameron <czcar...@gmail.com> wrote: > > Hi, > > > Does anyone have a version of the Paypal Standard Payments (spree-pp- > > website-standard) extension that is working with Spree 0.10? > > > Thanks alot, > > > Cameron > > > -- > > You received this message because you are subscribed to the Google Groups "Spree" group. > > To post to this group, send email to spree-user@googlegroups.com. > > To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com. > > For more options, visit this group athttp://groups.google.com/group/spree-user?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Spree" group. To post to this group, send email to spree-user@googlegroups.com. To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.
Read More…
I see what you mean about 'other places' - I commented out the UsersController permission in the spree gem, the before_filters in the users_controller.rb in the gem, and re-updated spree in my app and I'm still being redirected to the login page - any idea what's triggering it? -Ryan On Mar 18, 11:47 am, Roman Smirnov <pom...@gmail.com> wrote: > There is no problem to redefine permissions, try for example: > 'Admin::BaseController': > permission1: > roles : [admin] > options : > except : [show, index] > > But showing of view other people's profiles disallowed also in another > place ;-) > > On Mar 18, 4:15 am, Ryan Michael <keri...@gmail.com> wrote: > > > > > I'd like to have public user profiles for a site I'm working on, and I > > don't see any way to undo the permissions setting in config/ > > spree_permissions.yml other than changing the file in the Spree gem. > > > Please tell me there's a better way, and if not - wouldn't it be > > better to put this in the default_theme so it doesn't require > > monkeying with libraries? > > > -Ryan -- You received this message because you are subscribed to the Google Groups "Spree" group. To post to this group, send email to spree-user@googlegroups.com. To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.
Read More…
Rails 3 doesn't come with a generic rout mapping for controllers. The generator for models or scaffold will add the models as resources routes, so it will be RESTfull by default. It means that in any new rails 3 app, you will have to explicitly change the routes.rb to add the routes that are not related to a REST resource. Isn't it great? I love rails 3. []'s Felipe Ugis Ozols wrote: Hello, Here's how your routes.rb file should like for that /pages/home route to work: http://gist.github.com/316367 In rails 3 rule for catching non-rest routes is deprecated so it's commented out in routes.rb. You can read about it in Rails 3.0 Release Notes - http://guides.rails.info/3_0_release_notes.html#action-dispatch On Feb 26, 10:47 pm, John Wu <li...@ruby-forum.com> wrote: Hi All, I am new to Ruby on Rails and have rails3 installed. After I type this on the command line $rails g controller Pages home contact then, I go tohttp://localhost:3000/pages/home I got Routing Error No route matches "/pages/contact" How can I fix this problem? Thanks! -- Posted viahttp://www.ruby-forum.com/.
Read More…
On Mar 18, 10:13 am, Steven Hilton < mshilt...@gmail.com> wrote: > On Thu, Mar 18, 2010 at 6:08 AM, Vikrant Chaudhary < nas...@gmail.com> wrote: > > Tests are ran inside a transaction and are rolled back after each > test. In a separate process (i.e. ./script/dbconsole) you will not see > the data create from a test, even if you pause execution. you can see the data during the test if you alter the transaction isolation level to read uncommitted (at least you can with mysql) Fred -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Read More…
No.... I got the following this time: fatal: Could not switch to ' github.com/sbmsuite' On Mar 18, 11:42 am, Chris Rankin <rankin.de...@gmail.com> wrote: > Does it work now using git clone git:// > github.com/sbmsuite/radiant-crm-extension.git ??? > > On Thu, Mar 18, 2010 at 1:41 PM, Chris Rankin <rankin.de...@gmail.com>wrote: > > > I think we're both dummies. Well more me than you. /sbmsuite not :sbmsuite > > Sorry for putting bad directions up. I'll fix that in the README. > > > git clone git://github.com/sbmsuite/radiant-crm-extension.git > > > On Thu, Mar 18, 2010 at 1:39 PM, Chris Rankin <rankin.de...@gmail.com>wrote: > > >> weird, my g...@github.com:sbmsuite works but the git://github.com:sbmsuite > >> is doing the same thing your getting. let me redeploy it see what happens. > > >> On Thu, Mar 18, 2010 at 1:35 PM, Chris Rankin <rankin.de...@gmail.com>wrote: > > >>> let me check. > > >>> On Thu, Mar 18, 2010 at 1:27 PM, Yue <zhangyue1...@gmail.com> wrote: > > >>>> Thanks! > > >>>> But it seems that my git clone doesn't work > > >>>> root@server [/home/yue/rails/demo]# git clone > >>>> git://github.com:sbmsuite/radiant-crm-extension.git vendor/extensions/ > >>>> crm > >>>> Initialized empty Git repository in /home/yue/rails/demo/vendor/ > >>>> extensions/crm/.git/ > >>>> fatal: Unable to look up github.com (port sbmsuite) (Servname not > >>>> supported for ai_socktype) > > >>>> Any clue? > >>>> Thank very much! > > >>>> Yue > > >>>> On Mar 18, 10:24 am, Chris Rankin <rankin.de...@gmail.com> wrote: > >>>> > It should, you'll have to hack the tabs but that's all. > > >>>> > On Thu, Mar 18, 2010 at 12:21 PM, Yue <zhangyue1...@gmail.com> wrote: > >>>> > > Hey, > >>>> > > Good Work! > >>>> > > I'm wondering if your extension supports raidant 0.8.1? > > >>>> > > Thanks > >>>> > > Yue > > >>>> > > On Mar 9, 1:30 am, crankin <rankin.de...@gmail.com> wrote: > >>>> > > > For anyone interested in a CRM extension for Radiant I just > >>>> uploaded > >>>> > > > my CRM extension. > > >>>> > > >http://ext.radiantcms.org/extensions/206-crm > > >>>> > > > It allows you to mange and assign the following. > > >>>> > > > Leads > >>>> > > > Contacts > >>>> > > > Accounts > >>>> > > > Opportunities > >>>> > > > Tasks > >>>> > > > Campaigns > > >>>> > > > Hopefully this will be of some use to some of you. > > >>>> > > > Thanks, > > >>>> > > > Chris > > >>>> > > -- > >>>> > > Radiant CMS Dev Mailing List > >>>> > > Post: radiantcms-dev@googlegroups.com > >>>> > > Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com > >>>> > > Group Site: http://groups.google.com/group/radiantcms-dev/ > > >>>> -- > >>>> Radiant CMS Dev Mailing List > >>>> Post: radiantcms-dev@googlegroups.com > >>>> Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com > >>>> Group Site: http://groups.google.com/group/radiantcms-dev/ > >
-- Radiant CMS Dev Mailing List Post: radiantcms-dev@googlegroups.com Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com Group Site: http://groups.google.com/group/radiantcms-dev/
Read More…
If you want the names seperated by comma, try this: <%=h @posts.map{|p| p.name}.join(', ') %> On 18 mrt, 17:48, Michael Pavling <pavl...@gmail.com> wrote: > On 18 March 2010 16:33, Grick Zh <li...@ruby-forum.com> wrote: > > > <%=h @posts.each {|p| p.name} %> > > > why this code return serial strings like #<Post:0x3a893e8> ? > > Because you're outputting the return value of the whole loop, not the > output of each block. > If you run that command in your console, you will see it return an > array of Posts; and that's what you're trying to render. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Read More…
On 18 March 2010 17:36, Chris Mentch < lists@ruby-forum.com> wrote: >> >> Out of interest have you tried mongrel? >> script/server mongrel >> >> Otherwise I am out of my depth I am afraid. >> >> Colin > > Well, I executed "gem install mongrel", then "ruby script/server > webrick" and everything is loading!! I presume you mean "ruby script/server mongrel" Colin > What a bad problem with webrick. > My staging server is mongrel, but my production is phusion passenger > (which is a breeze to setup). I hope Passenger will be kind when I make > the next release to production! > > I think it even cleared up an annoying "stack level too deep" error I > was getting with webrick and not caching classes in development. > Mongrel isn't complaining. > > Thanks for your help! > > Chris > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Read More…
Does it work now using git clone git:// github.com/sbmsuite/radiant-crm-extension.git ??? On Thu, Mar 18, 2010 at 1:41 PM, Chris Rankin <rankin.devon@gmail.com> wrote: I think we're both dummies. Well more me than you. /sbmsuite not :sbmsuite Sorry for putting bad directions up. I'll fix that in the README.On Thu, Mar 18, 2010 at 1:39 PM, Chris Rankin <rankin.devon@gmail.com> wrote: weird, my git@github.com:sbmsuite works but the git://github.com:sbmsuite is doing the same thing your getting. let me redeploy it see what happens.On Thu, Mar 18, 2010 at 1:35 PM, Chris Rankin <rankin.devon@gmail.com> wrote: let me check.On Thu, Mar 18, 2010 at 1:27 PM, Yue <zhangyue1994@gmail.com> wrote: Thanks! But it seems that my git clone doesn't work root@server [/home/yue/rails/demo]# git clone git://github.com:sbmsuite/radiant-crm-extension.git vendor/extensions/ crm Initialized empty Git repository in /home/yue/rails/demo/vendor/ extensions/crm/.git/ fatal: Unable to look up github.com (port sbmsuite) (Servname not supported for ai_socktype) Any clue? Thank very much! Yue On Mar 18, 10:24 am, Chris Rankin < rankin.de...@gmail.com> wrote: > It should, you'll have to hack the tabs but that's all. > -- -- Radiant CMS Dev Mailing List Post: radiantcms-dev@googlegroups.com Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com Group Site: http://groups.google.com/group/radiantcms-dev/
Read More…
I think we're both dummies. Well more me than you. /sbmsuite not :sbmsuite Sorry for putting bad directions up. I'll fix that in the README. git clone git:// github.com/sbmsuite/radiant-crm-extension.git On Thu, Mar 18, 2010 at 1:39 PM, Chris Rankin <rankin.devon@gmail.com> wrote: weird, my git@github.com:sbmsuite works but the git://github.com:sbmsuite is doing the same thing your getting. let me redeploy it see what happens.On Thu, Mar 18, 2010 at 1:35 PM, Chris Rankin <rankin.devon@gmail.com> wrote: let me check.On Thu, Mar 18, 2010 at 1:27 PM, Yue <zhangyue1994@gmail.com> wrote: Thanks! But it seems that my git clone doesn't work root@server [/home/yue/rails/demo]# git clone git://github.com:sbmsuite/radiant-crm-extension.git vendor/extensions/ crm Initialized empty Git repository in /home/yue/rails/demo/vendor/ extensions/crm/.git/ fatal: Unable to look up github.com (port sbmsuite) (Servname not supported for ai_socktype) Any clue? Thank very much! Yue On Mar 18, 10:24 am, Chris Rankin < rankin.de...@gmail.com> wrote: > It should, you'll have to hack the tabs but that's all. > -- -- Radiant CMS Dev Mailing List Post: radiantcms-dev@googlegroups.com Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com Group Site: http://groups.google.com/group/radiantcms-dev/
Read More…
weird, my git@github.com:sbmsuite works but the git://github.com:sbmsuite is doing the same thing your getting. let me redeploy it see what happens. On Thu, Mar 18, 2010 at 1:35 PM, Chris Rankin <rankin.devon@gmail.com> wrote: let me check.On Thu, Mar 18, 2010 at 1:27 PM, Yue <zhangyue1994@gmail.com> wrote: Thanks! But it seems that my git clone doesn't work root@server [/home/yue/rails/demo]# git clone git://github.com:sbmsuite/radiant-crm-extension.git vendor/extensions/ crm Initialized empty Git repository in /home/yue/rails/demo/vendor/ extensions/crm/.git/ fatal: Unable to look up github.com (port sbmsuite) (Servname not supported for ai_socktype) Any clue? Thank very much! Yue On Mar 18, 10:24 am, Chris Rankin < rankin.de...@gmail.com> wrote: > It should, you'll have to hack the tabs but that's all. > -- -- Radiant CMS Dev Mailing List Post: radiantcms-dev@googlegroups.com Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com Group Site: http://groups.google.com/group/radiantcms-dev/
Read More…
> > Out of interest have you tried mongrel? > script/server mongrel > > Otherwise I am out of my depth I am afraid. > > Colin Well, I executed "gem install mongrel", then "ruby script/server webrick" and everything is loading!! What a bad problem with webrick. My staging server is mongrel, but my production is phusion passenger (which is a breeze to setup). I hope Passenger will be kind when I make the next release to production! I think it even cleared up an annoying "stack level too deep" error I was getting with webrick and not caching classes in development. Mongrel isn't complaining. Thanks for your help! Chris -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Read More…
let me check. On Thu, Mar 18, 2010 at 1:27 PM, Yue <zhangyue1994@gmail.com> wrote: Thanks! But it seems that my git clone doesn't work root@server [/home/yue/rails/demo]# git clone git://github.com:sbmsuite/radiant-crm-extension.git vendor/extensions/ crm Initialized empty Git repository in /home/yue/rails/demo/vendor/ extensions/crm/.git/ fatal: Unable to look up github.com (port sbmsuite) (Servname not supported for ai_socktype) Any clue? Thank very much! Yue On Mar 18, 10:24 am, Chris Rankin < rankin.de...@gmail.com> wrote: > It should, you'll have to hack the tabs but that's all. > -- -- Radiant CMS Dev Mailing List Post: radiantcms-dev@googlegroups.com Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com Group Site: http://groups.google.com/group/radiantcms-dev/
Read More…
it would suggest to the possibly lazier extension developers that all they need to do is update their tabs and call it a day
Hence my suggestion to mark it as deprecated. On Mar 18, 2010, at 12:58 PM, Alex Wallace wrote: Apologies for my gmail-lagged empty message prior to this one.
I don't think an "old" menu is a good move - it would suggest to the possibly lazier extension developers that all they need to do is update their tabs and call it a day. Seems like it would open the door for a lot of 0.8 extensions masquerading as 0.9 compatible. An "old/deprecated" menu would definitely have some code smell. On Thu, Mar 18, 2010 at 12:56 PM, Alex Wallace <alexmlwallace@gmail.com> wrote: On Thu, Mar 18, 2010 at 12:39 PM, Josh French <josh@digitalpulp.com> wrote: If the only difference between 0.8-compatible extensions and 0.9-compatible extensions were the Tab API, I'd agree with you. But as it stands, Radiant 0.8 -> 0.9 isn't a simple drop-in update for most extensions. So if updating extensions has to happen anyway, I think the intent here is to prod developers to adopt the new tab categories along the way. On Mar 18, 2010, at 12:22 PM, Mislav Marohnić wrote: On Thu, Mar 18, 2010 at 03:21, John W. Long <me@johnwlong.com> wrote: I'd like to suggest that extensions the old tab API get added to an "Old" top-level tab that would appear only when the old API is invoked.
That won't do much to encourage extension authors to update their extensions, but will certainly keep Radiant users from updating to 0.9.
I mean, a new tab named "Old" or "Legacy"? How to explain that to people who are merely using Radiant for managing content? I'd rather stick to 0.8 than have to explain my users why is some important stuff now under a strangely-named tab.
-- Radiant CMS Dev Mailing List Post: radiantcms-dev@googlegroups.com Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com Group Site: http://groups.google.com/group/radiantcms-dev/
-- Radiant CMS Dev Mailing List Post: radiantcms-dev@googlegroups.com Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com Group Site: http://groups.google.com/group/radiantcms-dev/
Read More…
Thanks! But it seems that my git clone doesn't work root@server [/home/yue/rails/demo]# git clone git://github.com:sbmsuite/radiant-crm-extension.git vendor/extensions/ crm Initialized empty Git repository in /home/yue/rails/demo/vendor/ extensions/crm/.git/ fatal: Unable to look up github.com (port sbmsuite) (Servname not supported for ai_socktype) Any clue? Thank very much! Yue On Mar 18, 10:24 am, Chris Rankin <rankin.de...@gmail.com> wrote: > It should, you'll have to hack the tabs but that's all. > > On Thu, Mar 18, 2010 at 12:21 PM, Yue <zhangyue1...@gmail.com> wrote: > > Hey, > > Good Work! > > I'm wondering if your extension supports raidant 0.8.1? > > > Thanks > > Yue > > > On Mar 9, 1:30 am, crankin <rankin.de...@gmail.com> wrote: > > > For anyone interested in a CRM extension for Radiant I just uploaded > > > my CRM extension. > > > >http://ext.radiantcms.org/extensions/206-crm > > > > It allows you to mange and assign the following. > > > > Leads > > > Contacts > > > Accounts > > > Opportunities > > > Tasks > > > Campaigns > > > > Hopefully this will be of some use to some of you. > > > > Thanks, > > > > Chris > > > -- > > Radiant CMS Dev Mailing List > > Post: radiantcms-dev@googlegroups.com > > Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com > > Group Site: http://groups.google.com/group/radiantcms-dev/ > >
-- Radiant CMS Dev Mailing List Post: radiantcms-dev@googlegroups.com Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com Group Site: http://groups.google.com/group/radiantcms-dev/
Read More…
I'm using... def self.require_gems(config) config.gem 'exceptional' end In my extension. When I add ... raise "Loading!" To the first line of the Exceptional gem init.rb, nothing happens when I start the Spree application. When I move the config.gem to config/environment.rb, the exception is raised. Alan Gutierrez -- You received this message because you are subscribed to the Google Groups "Spree" group. To post to this group, send email to spree-user@googlegroups.com. To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.
Read More…
Should be at least one call like delivery.edit_hook :load_available_methods before you will can call delivery.edit_hook << :load_available_methods_2 On Mar 18, 6:44 pm, Alan Gutierrez <a...@blogometer.com> wrote: > The documentation says you can do this: > > delivery.edit_hook << :perform_additional_logic > > But when I do that like so: > > confirm.update_hook << :my_nifty_hook > def my_nifty_hook > raise "I'm hooked!" > end > > I get an exception: > > You have a nil object when you didn't expect it! (NoMethodError) > You might have expected an instance of Array. > The error occurred while evaluating nil.<< > > When I look at the code for hooks, I don't see how you can append. Is > this a nice idea that has not yet been implemented. (I'm on edge.) > > Alan Gutierrez -- You received this message because you are subscribed to the Google Groups "Spree" group. To post to this group, send email to spree-user@googlegroups.com. To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.
Read More…
On 18 March 2010 17:03, Chris Mentch < lists@ruby-forum.com> wrote: >... > What is odd is that I even created a new rails app from scratch and it > is also having the same problem serving up anything from the public > folder---stylesheets, javascripts, images, etc... If I start webrick on > this new app, it appears that the "new rails app" page loads with the > images, but if I refresh, it immediately gives me the 500 errors on the > static content. Out of interest have you tried mongrel? script/server mongrel Otherwise I am out of my depth I am afraid. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Read More…
Colin Law wrote: > > You can tell whether it changed anything by checking your current > version against the version in your version control repository. If > you are not using one (git for example) start by setting one up. When > messing about upgrading rails and so on you need to be able to track > what you have done, revert experimental changes, and so on. A day or > two spent learning git will be recovered very quickly. > > Colin I use subversion. Not much changed after executing "rake rails:update" on my current project. I think it mainly changed the boot.rb file.
What is odd is that I even created a new rails app from scratch and it is also having the same problem serving up anything from the public folder---stylesheets, javascripts, images, etc... If I start webrick on this new app, it appears that the "new rails app" page loads with the images, but if I refresh, it immediately gives me the 500 errors on the static content. I think I've worked through most of the other problems related to all the various plugins I'm using, but this issue still is puzzling why even a new rails app has the same problem. Chris -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Read More…
Apologies for my gmail-lagged empty message prior to this one.
I don't think an "old" menu is a good move - it would suggest to the possibly lazier extension developers that all they need to do is update their tabs and call it a day. Seems like it would open the door for a lot of 0.8 extensions masquerading as 0.9 compatible. An "old/deprecated" menu would definitely have some code smell. On Thu, Mar 18, 2010 at 12:56 PM, Alex Wallace <alexmlwallace@gmail.com> wrote: On Thu, Mar 18, 2010 at 12:39 PM, Josh French <josh@digitalpulp.com> wrote: If the only difference between 0.8-compatible extensions and 0.9-compatible extensions were the Tab API, I'd agree with you. But as it stands, Radiant 0.8 -> 0.9 isn't a simple drop-in update for most extensions. So if updating extensions has to happen anyway, I think the intent here is to prod developers to adopt the new tab categories along the way. On Mar 18, 2010, at 12:22 PM, Mislav Marohnić wrote: On Thu, Mar 18, 2010 at 03:21, John W. Long <me@johnwlong.com> wrote: I'd like to suggest that extensions the old tab API get added to an "Old" top-level tab that would appear only when the old API is invoked.
That won't do much to encourage extension authors to update their extensions, but will certainly keep Radiant users from updating to 0.9.
I mean, a new tab named "Old" or "Legacy"? How to explain that to people who are merely using Radiant for managing content? I'd rather stick to 0.8 than have to explain my users why is some important stuff now under a strangely-named tab.
-- Radiant CMS Dev Mailing List Post: radiantcms-dev@googlegroups.com Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com Group Site: http://groups.google.com/group/radiantcms-dev/ -- Radiant CMS Dev Mailing List Post: radiantcms-dev@googlegroups.com Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com Group Site: http://groups.google.com/group/radiantcms-dev/
Read More…
On Thu, Mar 18, 2010 at 12:39 PM, Josh French <josh@digitalpulp.com> wrote: If the only difference between 0.8-compatible extensions and 0.9-compatible extensions were the Tab API, I'd agree with you. But as it stands, Radiant 0.8 -> 0.9 isn't a simple drop-in update for most extensions. So if updating extensions has to happen anyway, I think the intent here is to prod developers to adopt the new tab categories along the way. On Mar 18, 2010, at 12:22 PM, Mislav Marohnić wrote: On Thu, Mar 18, 2010 at 03:21, John W. Long <me@johnwlong.com> wrote: I'd like to suggest that extensions the old tab API get added to an "Old" top-level tab that would appear only when the old API is invoked.
That won't do much to encourage extension authors to update their extensions, but will certainly keep Radiant users from updating to 0.9.
I mean, a new tab named "Old" or "Legacy"? How to explain that to people who are merely using Radiant for managing content? I'd rather stick to 0.8 than have to explain my users why is some important stuff now under a strangely-named tab.
-- Radiant CMS Dev Mailing List Post: radiantcms-dev@googlegroups.com Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com Group Site: http://groups.google.com/group/radiantcms-dev/ -- Radiant CMS Dev Mailing List Post: radiantcms-dev@googlegroups.com Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com Group Site: http://groups.google.com/group/radiantcms-dev/
Read More…
As much of the trace as I can get from my Windows command prompt. It doesn't log this to log/development.log. You'll see GET calls and then the 500 error followed by the "private method `gsub!'" error message repeatedly. Seems to affect all of the static files---stylesheets, javascripts, images. Sometimes it pulls images from my cache and if I refresh the page the image is missing again... ------------------------ C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require ' script/server:3 127.0.0.1 - - [18/Mar/2010:12:15:05 Eastern Daylight Time] "GET /javascripts/app lication.js?1263890390 HTTP/1.1" 500 338 Referer -> /javascripts/application.js?1263890390 127.0.0.1 - - [18/Mar/2010:12:15:05 Eastern Daylight Time] "GET /javascripts/jqu ery/jquery.js?1243816946 HTTP/1.1" 500 338 Referer -> /javascripts/jquery/jquery.js?1243816946 [2010-03-18 12:15:05] ERROR NoMethodError: private method `gsub!' called for #<C lass:0x483f450> C:/ruby/lib/ruby/1.8/webrick/htmlutils.rb:16:in `escape' C:/ruby/lib/ruby/1.8/webrick/httpresponse.rb:232:in `set_error' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:94:in ` handle_file' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:73:in ` service' C:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' C:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' C:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' C:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start' C:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' C:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start' C:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each' C:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start' C:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start' C:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:60:in ` dispatch' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/servers/webrick. rb:66 C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_ori ginal_require' C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require ' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/de pendencies.rb:153:in `require' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/de pendencies.rb:521:in `new_constants_in' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/de pendencies.rb:153:in `require' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/server.rb:49 C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_ori ginal_require' C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require ' script/server:3 [2010-03-18 12:15:05] ERROR NoMethodError: private method `gsub!' called for #<C lass:0x483e808> C:/ruby/lib/ruby/1.8/webrick/htmlutils.rb:16:in `escape' C:/ruby/lib/ruby/1.8/webrick/httpresponse.rb:232:in `set_error' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:94:in ` handle_file' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:73:in ` service' C:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' C:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' C:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' C:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start' C:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' C:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start' C:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each' C:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start' C:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start' C:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:60:in ` dispatch' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/servers/webrick. rb:66 C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_ori ginal_require' C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require ' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/de pendencies.rb:153:in `require' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/de pendencies.rb:521:in `new_constants_in' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/de pendencies.rb:153:in `require' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/server.rb:49 C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_ori ginal_require' C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require ' script/server:3 [2010-03-18 12:15:05] ERROR NoMethodError: private method `gsub!' called for #<C lass:0x4838d90> C:/ruby/lib/ruby/1.8/webrick/htmlutils.rb:16:in `escape' C:/ruby/lib/ruby/1.8/webrick/httpresponse.rb:232:in `set_error' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:94:in ` handle_file' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:73:in ` service' C:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' C:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' C:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' C:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start' C:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' C:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start' C:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each' C:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start' C:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start' C:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:60:in ` dispatch' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/servers/webrick. rb:66 C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_ori ginal_require' C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require ' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/de pendencies.rb:153:in `require' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/de pendencies.rb:521:in `new_constants_in' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/de pendencies.rb:153:in `require' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/server.rb:49 C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_ori ginal_require' C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require ' script/server:3 127.0.0.1 - - [18/Mar/2010:12:15:05 Eastern Daylight Time] "GET /javascripts/cal endar_date_select/format_american.js?1226806161 HTTP/1.1" 500 338 Referer -> /javascripts/calendar_date_select/format_american.js?1226806161 127.0.0.1 - - [18/Mar/2010:12:15:05 Eastern Daylight Time] "GET /javascripts/cal endar_date_select/calendar_date_select.js?1232746900 HTTP/1.1" 500 338 Referer -> /javascripts/calendar_date_select/calendar_date_select.js?1232746900 127.0.0.1 - - [18/Mar/2010:12:15:05 Eastern Daylight Time] "GET /stylesheets/cal endar_date_select/default.css?1255528591 HTTP/1.1" 500 338 Referer -> /stylesheets/calendar_date_select/default.css?1255528591 [2010-03-18 12:15:05] ERROR NoMethodError: private method `gsub!' called for #<C lass:0x482c178> C:/ruby/lib/ruby/1.8/webrick/htmlutils.rb:16:in `escape' C:/ruby/lib/ruby/1.8/webrick/httpresponse.rb:232:in `set_error' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:94:in ` handle_file' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:73:in ` service' C:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' C:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' C:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' C:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start' C:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' C:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start' C:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each' C:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start' C:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start' C:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:60:in ` dispatch' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/servers/webrick. rb:66 C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_ori ginal_require' C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require ' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/de pendencies.rb:153:in `require' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/de pendencies.rb:521:in `new_constants_in' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/de pendencies.rb:153:in `require' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/server.rb:49 C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_ori ginal_require' C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require ' script/server:3 127.0.0.1 - - [18/Mar/2010:12:15:05 Eastern Daylight Time] "GET /javascripts/jqu ery/thickbox.js?1263700042 HTTP/1.1" 500 338 Referer -> /javascripts/jquery/thickbox.js?1263700042 [2010-03-18 12:15:05] ERROR NoMethodError: private method `gsub!' called for #<C lass:0x47f6ac0> C:/ruby/lib/ruby/1.8/webrick/htmlutils.rb:16:in `escape' C:/ruby/lib/ruby/1.8/webrick/httpresponse.rb:232:in `set_error' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:94:in ` handle_file' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:73:in ` service' C:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' C:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' C:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' C:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start' C:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' C:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start' C:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each' C:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start' C:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start' C:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:60:in ` dispatch' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/servers/webrick. rb:66 C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_ori ginal_require' C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require ' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/de pendencies.rb:153:in `require' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/de pendencies.rb:521:in `new_constants_in' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/de pendencies.rb:153:in `require' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/server.rb:49 C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_ori ginal_require' C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require ' script/server:3 127.0.0.1 - - [18/Mar/2010:12:15:05 Eastern Daylight Time] "GET /javascripts/cal endar_date_select/format_american.js?1226806161 HTTP/1.1" 500 338 Referer -> /javascripts/calendar_date_select/format_american.js?1226806161 [2010-03-18 12:15:05] ERROR NoMethodError: private method `gsub!' called for #<C lass:0x47d7cf8> C:/ruby/lib/ruby/1.8/webrick/htmlutils.rb:16:in `escape' C:/ruby/lib/ruby/1.8/webrick/httpresponse.rb:232:in `set_error' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:94:in ` handle_file' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:73:in ` service' C:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' C:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' C:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' C:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start' C:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' C:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start' C:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each' C:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start' C:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start' C:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:60:in ` dispatch' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/servers/webrick. rb:66 C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_ori ginal_require' C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require ' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/de pendencies.rb:153:in `require' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/de pendencies.rb:521:in `new_constants_in' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/de pendencies.rb:153:in `require' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/server.rb:49 C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_ori ginal_require' C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require ' script/server:3 [2010-03-18 12:15:05] ERROR NoMethodError: private method `gsub!' called for #<C lass:0x47d00c0> C:/ruby/lib/ruby/1.8/webrick/htmlutils.rb:16:in `escape' C:/ruby/lib/ruby/1.8/webrick/httpresponse.rb:232:in `set_error' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:94:in ` handle_file' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:73:in ` service' C:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' C:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' C:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' C:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start' C:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' C:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start' C:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each' C:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start' C:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start' C:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:60:in ` dispatch' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/servers/webrick. rb:66 C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_ori ginal_require' C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require ' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/de pendencies.rb:153:in `require' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/de pendencies.rb:521:in `new_constants_in' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/de pendencies.rb:153:in `require' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/server.rb:49 C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_ori ginal_require' C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require ' script/server:3 127.0.0.1 - - [18/Mar/2010:12:15:05 Eastern Daylight Time] "GET /stylesheets/cal endar_date_select/default.css?1255528591 HTTP/1.1" 500 338 Referer -> /stylesheets/calendar_date_select/default.css?1255528591 127.0.0.1 - - [18/Mar/2010:12:15:05 Eastern Daylight Time] "GET /javascripts/jqu ery/thickbox.js?1263700042 HTTP/1.1" 500 338 Referer -> /javascripts/jquery/thickbox.js?1263700042 127.0.0.1 - - [18/Mar/2010:12:15:05 Eastern Daylight Time] "GET /images/btn_logi n_sm.gif?1234253352 HTTP/1.1" 200 1543 Referer -> /images/btn_login_sm.gif?1234253352 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Read More…
i am getting this same exact error message when i try to do a User.find_by_username('array'). Im have twitter users signed up on my site and i am trying to find the the users on my site from a timeline. When i try <%= User.find_by_username('status.user.screen_name') %> It returns nil, but if i use <%= status.user.screen_name %> it returns all the user screen names so i can not figure out what is going wrong. On Mar 18, 3:45 am, Michael Pavling <pavl...@gmail.com> wrote: > On 18 March 2010 06:18, Me <chabg...@gmail.com> wrote: > > > I assign an array to a hash value. > > > h[:ext_array] it is nil. > > I copied your hash into IRB and it worked fine:>> h = {:has_key=>0, :ext_array=>["Text file (.txt)<br/>", "Rich Text Format > > (.rtf)<br/>", "Word Document (.doc, .docx)<br/>"]} > => {:has_key=>0, :ext_array=>["Text file (.txt)<br/>", "Rich Text > Format\n(.rtf)<br/>", "Word Document (.doc, .docx)<br/>"]}>> h[:ext_array] > > => ["Text file (.txt)<br/>", "Rich Text Format\n(.rtf)<br/>", "Word > Document (.doc, .docx)<br/>"] > > > > Can you post the code where you're accessing h[:ext_array] and getting > nil. I think you might be getting nil as the result of an expression > rather than the value from the hash.
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Read More…
There is no problem to redefine permissions, try for example: 'Admin::BaseController': permission1: roles : [admin] options : except : [show, index] But showing of view other people's profiles disallowed also in another place ;-) On Mar 18, 4:15 am, Ryan Michael <keri...@gmail.com> wrote: > I'd like to have public user profiles for a site I'm working on, and I > don't see any way to undo the permissions setting in config/ > spree_permissions.yml other than changing the file in the Spree gem. > > Please tell me there's a better way, and if not - wouldn't it be > better to put this in the default_theme so it doesn't require > monkeying with libraries? > > -Ryan -- You received this message because you are subscribed to the Google Groups "Spree" group. To post to this group, send email to spree-user@googlegroups.com. To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.
Read More…
try this. <%= n.select :purchase_item_id, PurchaseItem.all.collect {|a| [a.name, a.id] }, @recipe.purchase_item.id %> Havent tested it so it may or may not work. On Mar 18, 7:44 am, Andy <andy.bo...@gmail.com> wrote: > Hello, > I wish I had the time to figure this out but I'm on a limited timeline > to convince people to look at RoR instead of Drupal, so I need to get > something relatively simple working fast. Any help or pointers would > be appreciated! > > I have two HABTM many models, recipe_item and purchase_item. I need a > form to designate in my view that any number of purchase_items or > recipe_items can be a component of a given recipe_item. It looks like > Ryan Bates' screencast on nested model forms provides a lot of help on > a similar issue, but I'm having trouble picking apart the logic for my > issue. Regardless at the moment as a test I'm just trying to get a > single select on the recipe_item view to submit the purchase_item > association. When I submit I get this error: > > PurchaseItem(#20112400) expected, got Array(#102050) > > Here is my code: > > Models: > > class PurchaseItem < ActiveRecord::Base > has_and_belongs_to_many :recipe_items > end > > class RecipeItem < ActiveRecord::Base > has_and_belongs_to_many :purchase_items > end > > Controllers are left completely as generated by 2.3 Rails scaffolding. > > New recipe_item View: > > <h1>New recipe_item</h1> > > <% form_for(@recipe_item) do |f| %> > <%= f.error_messages %> > > <p> > <%= f.label :name %><br /> > <%= f.text_field :name %> > </p> > <p> > <% f.fields_for :purchase_items do |n| %> > <%= n.label :purchase_item_id %> > <%= n.select :purchase_item_id, PurchaseItem.all.collect {|a| > [a.name, a.id] }%> > <% end %> > </p> > <p> > <%= f.submit 'Create' %> > </p> > <% end %> > > <%= link_to 'Back', recipe_items_path %> > > I'm aware this can be DRYed up but like I said right now I just need > to demonstrate something working for my team. Any help would be > appreciated! > > Thanks, > Andy -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Read More…
If the only difference between 0.8-compatible extensions and 0.9-compatible extensions were the Tab API, I'd agree with you. But as it stands, Radiant 0.8 -> 0.9 isn't a simple drop-in update for most extensions. So if updating extensions has to happen anyway, I think the intent here is to prod developers to adopt the new tab categories along the way. On Mar 18, 2010, at 12:22 PM, Mislav Marohnić wrote: On Thu, Mar 18, 2010 at 03:21, John W. Long <me@johnwlong.com> wrote:
I'd like to suggest that extensions the old tab API get added to an "Old" top-level tab that would appear only when the old API is invoked.
That won't do much to encourage extension authors to update their extensions, but will certainly keep Radiant users from updating to 0.9.
I mean, a new tab named "Old" or "Legacy"? How to explain that to people who are merely using Radiant for managing content? I'd rather stick to 0.8 than have to explain my users why is some important stuff now under a strangely-named tab.
-- Radiant CMS Dev Mailing List Post: radiantcms-dev@googlegroups.com Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com Group Site: http://groups.google.com/group/radiantcms-dev/
Read More…
On Thu, Mar 18, 2010 at 12:22 PM, Mislav Marohnić < mislav.marohnic@gmail.com> wrote: > On Thu, Mar 18, 2010 at 03:21, John W. Long < me@johnwlong.com> wrote: >> >> I'd like to suggest that extensions >> the old tab API get added to an "Old" top-level tab that would appear >> only when the old API is invoked. > > That won't do much to encourage extension authors to update their > extensions, but will certainly keep Radiant users from updating to 0.9. > I mean, a new tab named "Old" or "Legacy"? How to explain that to people who > are merely using Radiant for managing content? I'd rather stick to 0.8 than > have to explain my users why is some important stuff now under a > strangely-named tab. They have to go somewhere Mislav. And they don't all fit well underneath the "Content" tab. Perhaps the name of it should be "More" or "Extensions" or "Other"? -- John Long http://wiseheartdesign.com http://recursivecreative.com -- Radiant CMS Dev Mailing List Post: radiantcms-dev@googlegroups.com Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com Group Site: http://groups.google.com/group/radiantcms-dev/
Read More…
Pretty sure `SiteController.cache_timeout = 12.hours` will do what you want. Note that this won't prevent the app from sleeping under austere Passenger settings, but it will ensure your pages are served from the cache once it spins back up. On Mar 18, 2010, at 11:29 AM, Adam van den Hoven wrote: hey guys.
Is it possible to change how Radiant does its caching? The site I'm working on has 90+% of its content static. We're also hosting the site on Dreamhost so the combination of 5 minute caches, 5 minute restart of passenger and comparatively infrequent visits means that, well, the site is DOG slow. If I'd realized this WAY back when I started the project (one of those probono things that takes years) I'd have tried something else (not that anything else at the time was palatable). I'd like to set my cache to be something on the scale of 12 hours.
I'm sure its doable, I'm just not sure how.
Unless someone knows of an extension that runs on command ("Publish Now") and writes out all the resulting files to /public? That's even better for my needs... Adam
-- Radiant CMS Dev Mailing List Post: radiantcms-dev@googlegroups.com Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com Group Site: http://groups.google.com/group/radiantcms-dev/
Read More…
On Mar 18, 3:04 am, Michael Pavling < pavl...@gmail.com> wrote: > > In the end, I wrote some wholly ugly code to get around it: http://www.workingwithrails.com/forums/4-ask-a-rails-expert/topics/80...http://groups.google.com/group/prawn-ruby/browse_thread/thread/185977... > > ... my solution was certainly frowned on by the Prawn core; and > they're correct. It does seem thatPrawntocauses more problems than > it solves by trying to be "nice". If you follow the Prawn guides for > integrating with Rails, the process is a lot more re-useable. > > But if you're in my position, and are stuck with loads ofPrawnto > views you can't get rid of overnight, then the solution I've posted > will at least let you take their output and put it to different use. Thanks for the reply. I ended up not needing to do what you did since I'm not needing to call #render_to_string from a model. However, the discussions and stuff you mentioned and included in your links gave me the answer that now works for my case. I was calling #render_to_string as follows: document = render_to_string :action => "print", :layout => false This didn't work because the print action had other, non prawnto templates in its template directory, specifically an RJS template. Since the action that contained the above line of code was always being called via AJAX and request.rjs? was always true, my request to render "print" as a string would always render my print.rjs template. Reading your posted threads, I got the idea to try: document = render_to_string :template => "worksheets/ print.pdf.prawn", :layout => false This works perfectly for me and my simple case. So, once again, thank! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Read More…
|