Ruby on Rails »  News   

memcache in prod vs dev
Wed, 01 Sep 2010 17:26:54 UT
I am using memcache for caching in my rails app and currently I have a dev and a production environment. I would like to run the dev environment without caching so that I can debug more easily but I wanna enable the caching in production obviously. I am using github and capistrano for deployment.

Anyone writing a Rails backend to elFinder?
Wed, 01 Sep 2010 17:17:16 UT
Hi all - There's a new WYSIWYG editor out ([link]) that has a file manager component. There are backends for PHP and Python at the moment. Wondering if anyone has begun work on a Rails backend? I don't want to start just to find it's been done already... [link] -philip

rubygem 1.3.7 install problem
Wed, 01 Sep 2010 18:37:52 UT
hi i am trying to install rubygem 1.3.7 on my linux system, i am using ruby 1.9.2p0, when i try to install rubygem i get the following error: /opt/rubygems-1.3.7/lib/rubyge ms/source_index.rb:68:in `installed_spec_directories': undefined method `path' for Gem:Module (NoMethodError) from /opt/rubygems-1.3.7/lib/rubyge ms/source_index.rb:58:in

Rails 3: many to many polymorphic relationship
Wed, 01 Sep 2010 20:27:50 UT
Hello, I've been googling for about two hours already but not successful yet so I hope you guys can help me out. I need some kind of n:m polymorphic relation like this: building_types: living, shops block_types: residential, commercial activity_types: act1, act2 So now I need a connection table e.g. activity_scope so I can for

can't install rails - gem is asking for a zlib
Wed, 01 Sep 2010 20:46:41 UT
Hey all, this is my first attempt with rails.... This what is happening: me@mypc:~$ ruby -v ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux] me@mypc:~$ gem -v 1.3.7 so, ok let's install rails: me@mypc:~$ gem install rails ERROR: Loading command: install (LoadError) no such file to load -- zlib

howto reload changes using script/console ?
Mon, 30 Aug 2010 23:14:07 UT
I am using script/console to debug, but when I make some changes to say a helper and rerun the method, it doesn't reload the new changes. "reload!" doesn't work - it only updates model changes. Suggestions? TIA

paperclip gem install failed
Mon, 30 Aug 2010 23:15:10 UT
when i'm installing paperclip gem its return err (i18n requires RubyGems version >= 1.3.6) the os is ubuntu 10.04 64bit -nirosh-

rails new --builder
Mon, 30 Aug 2010 23:47:40 UT
When invoking rails new with the --builder option, I see that you have to call the class ::AppBuilder. How can you change the source_root for just a few of the methods? I want to generate the gemfile from my own template AppBuilder < Rails::AppBuilder def gemfile template 'Gemfile' end end How can I change the Gemfile template from the AppBuilder and if I

Rails 3 formatted URL's
Tue, 31 Aug 2010 02:08:21 UT
Hello folks! I'm using Rails 3 right now, and I am trying to get my RSS feed working. However, I am getting -- undefined method `formatted_posts_url' -------- when i try to view my RSS feed. "Posts" is the controller that I would like to build an RSS feed from. I do "rake routes" and I don't see the "formatted" route there.

Time without date
Tue, 31 Aug 2010 03:44:47 UT
Rails automatically appends a dummy date when you use the TIME type on your database. My point is: if you are using a time data type on your database, you are doing that exactly because you don't want the date included. Anyway, I am storing a integer column with the total seconds on the database and then transforming that with composed_of. Is there a

newbie problem
Tue, 31 Aug 2010 07:29:20 UT
Trying to learn how to work with arrays. Using RubyMine. Trouble with array syntax below in html.erb file. <html> <head> <title>Ruby Arrays</title> </head> <body> <%= array = ['a','b','c'] %> </body> </html> Shows up in browser as this: ["a", "b", "c"] using 1.9.1 Thanks for any suggestions.

Manageable search forms
Tue, 31 Aug 2010 07:50:31 UT
I've got a job search form that will search a 'jobs' table. What would be the best way to give my client the ability to edit the fields in the search form?

2 x Perm Ruby developers needed
Tue, 31 Aug 2010 08:09:04 UT
I am looking for two ruby developers to join a leading client in Cambridge. The roles have a high level of responsibility and flexibility and will provide great opportunities for professional development. Skills: A Computer Science degree Worked with Ruby on Rails or other web framework. As comfortable with writing native JavaScript as with building on

RoR working on Windows 7 without Instant Rails
Tue, 31 Aug 2010 00:27:01 UT
Lots of people have been getting sqlite3 errors with this so I thought I would post how I got it working. 1. Install Ruby. (Go to [link] and run the Windows installer. At the time of writing, I ran rubyinstaller-1.9.2- p0.exe.) 2. Install Ruby Gems. (At the time of writing I installed

UTF-8 to ASCII Conversion
Tue, 31 Aug 2010 10:02:12 UT
UTF-8 to ASCII Conversion does anybody knows how to convert from UTF-8 to ASCII. the problem is that,the DB supports UTF-8 in one server, which can display Special characters when PRAWN generates the PDF... when the same code is migrated to another server which supports ASCII- database, its not working. so is there any method or code that tells the

rails3 and unobtrusive javascript.
Tue, 31 Aug 2010 10:12:35 UT
Ok to not depend on a specific javascript framework but now its' hard for me to reproduce the same behavior of some helpers like observe_field. I've found some jquery examples but all use the event change that is triggered only when the text field loses focus. It's not the same behavior as observe_field.

Can I use session obj without cookie support in browser?
Tue, 31 Aug 2010 08:12:07 UT
Hi, guys: I want to use the session object in the rails, but the browser has disabled the cookie support. I store some string into the session obj, but I can't retrieve the string value in another page. In there any solution to solve the problem? I have tried add the following code on Application_Controller to store

Where's the old rails guide?
Tue, 31 Aug 2010 11:40:39 UT
Hi everyone, Now that rails 3 is out and everyone is excited, does anybody know where's the 2.3 guide went? Thanks heaps. Joshua

Ruby1.9.2 openssl libs
Tue, 31 Aug 2010 12:31:11 UT
Hi I installed ruby1.9.2 through rvm. now my new Rails3 app is complaining about openssl.. I checked my distro's repos, but libopenssl-ruby is available for ruby1.8.x and ruby1.9.1 How do i resolve this issue?

Rails Technical Design
Tue, 31 Aug 2010 13:05:26 UT
Hi Everyone, It will be nice if every one can share the process and the best practices followed for technical design of a Rails project. May be in the end we can come up with a common template(if needed). Let me start first Following are the steps I do before starting to code a Rails project.


«   1  2  3  4  5  6  7  8  9  10  11   »

Categories

Ads