search for: purpleworkshops

Displaying 13 results from an estimated 13 matches for "purpleworkshops".

2009 Sep 01
4
Passenger problem
I''ve used the Slicehost Intrepid instructions (http:// articles.slicehost.com/ubuntu-intrepid) to install a new Ubuntu server with Ruby, Rails and passenger. Everything seems to be working OK, save for one thing: my application only service up the files that are in its public folder. The Passenger gem is installed. I''ve done this whole process before without any problem. Any
2009 Dec 14
5
Too many methods in the model? Extra lightweight logic layer?
Hi, Given the convention of fat models to handle business logic, is there a point where you might be justified in using a separate plain ruby object(s) to orchestrate certain business logic interactions, essentially a middle layer between your controllers and models for high level functions? If you look at the InventoryTransaction model below you will see the sort of methods I mean. In this case
2010 Aug 03
2
Strange error message when rendering the scaffold form
Hello everyone, I am developing my application and I created a scaffold called listas, but when I acess /listas/new I get this error message: NoMethodError in Listas#new Showing /home/rodrigo3n/code/listeiroo/app/views/listas/_form.html.erb where line #15 raised: undefined method `deep_symbolize_keys'' for nil:NilClass Extracted source (around line #15): 12: <% end %> 13: 14:
2008 Nov 18
3
Code changes are ignored due to code minor ver. were cached
Hi there! I study Ruby on Rails and met a problem. I placed a class definition code for class which is NOT a Model into separate file, assume MyToolClass.rb Then I started working on controller code and required ''MyToolClass'' While working on controller code I also corrected some code in MyToolClass.rb, but it seemed, that changes in MyTooolClass.rb were ignored by Rails until
2008 Nov 04
3
Nester Resources, Routes and Class Inheritance
Ok here''s a quicky... but a goody :) We have models Company, Reference and Applicant... and References and Applicants just inherit from Company, and are basically companies with the type field set to reference... All companies can have a phone number associated with them, and phone number is a different model... I''m having trouble using the form_for method with a company that
2008 Sep 19
7
Non-Ruby REST client for Ruby REST server
Hi, I have a Rails 2 app and I wand to provide an API for 3rd party applications written on any language the customer uses. My thoughts are that the best way of providing it is by taking advantage of rails RESTfulness and let them perform CRUD actions on my data through it. But I don''t seem to find many information on how to achieve this. I first want to develop .NET clients (or web
2010 May 20
5
Problem with installation of Rails 3
Help me out guys.... While installing rails 3 i got the following message :~$ sudo gem install rails --pre Successfully installed rails-3.0.0.beta3 1 gem installed Installing ri documentation for rails-3.0.0.beta3... File not found: lib My gem list :~$ gem list *** LOCAL GEMS *** abstract (1.0.0) actionmailer (3.0.0.beta3, 2.3.5) actionpack (3.0.0.beta3, 2.3.5) activemodel (3.0.0.beta3)
2008 Aug 27
6
Restful routes
Hi, I''m pretty new to the concept of restful routing and am struggling to find any rails 2 info that helps with what I''m looking for. I have a regular scaffold setup and the routes are setup as default map.resources :pages I would like to be able to use titles in the url rather than relying on the id. Eg localhost:3000/pages/sometitle instead of just localhost:3000/pages/1
2008 Sep 19
1
Freezing Rails to 2.0.2
Hi, I am using Rails 2.1.1 to stay in touch with the latest. I need to freeze the rails to version 2.0.2 for a project. But... The command in Rake tasks for Freeze allows only to freeze for the latest version I am using Netbeans 6.1 and familiar with tools only... Not much familiar with Console currently. Is there any facility in that allows me to freeze to older versions. Thanks -- Posted
2008 Oct 16
1
Modularisation: Using helper generating HTML output vs. using partials
Hey, I''ve got a general question: when do I use helper and when I do use partials to modularise certain gui elements? For example: I''ve got a faq list. Each item can be folded and unfolded using ajax. FAQ foo -> question 1 -> question 2 -> question 3 So, I wrote a helper "faq_li_tag(args)" which takes the question and answer for parameters and generates the
2008 Nov 19
2
Where should I put "prerequisite logic"?
Hi there, I have this model called InventoryItem. Every time an InventoryItem is created (through the CharactersController and the create_item action) I need to update others tables and make lookups in other tables, to check if the Character has the prerequisites to actually create the InventoryItem. My problem is that I cannot seem to find a good place to put this logic. I''ve tried to
2009 Aug 06
20
Changing from database sqlite3 to mysql - windows
Hi Guys I''d like to know how to change from using sqlite3 to mysql. I''m running windows xp. What is the command that I must type under my application folder? How to I log into the mysql database afterwards? My database.yml file contents at the moment are: # SQLite version 3.x # gem install sqlite3-ruby (not necessary on OS X Leopard) development: adapter: sqlite3
2010 Feb 18
5
Converting hash to option string
Is there a good way to programmatically convert {:a=>''b'', :c=>''d''} to ''a=b c=d'' ? Rails seems to do this knid of thing "all over the place". I see reverse_merge and similar functions ... but I wonder if this is canned behavior somewhere. -- Posted via http://www.ruby-forum.com/. -- You received this message because you