[Rails] displaying attribute from related table with a collection_select

2011-07-03 Thread @demetriusolsen
I have two tables: Area, AreaType Area belongs_to :area_type AreaType has_many :areas In my view, I'd like to select from a list of Areas, however, instead of using the :area_type_id attribute, I would like to use the associated area_type names. Here's what it looks like now: %=

[Rails] Re: displaying attribute from related table with a collection_select

2011-07-03 Thread @demetriusolsen
Well that was easy! After a little trial and error, I created a new method in the area.rb and used the name of that method in the collection select :-) Cheers On Jul 2, 11:48 pm, @demetriusolsen demetri...@hotmail.com wrote: I have two tables: Area, AreaType Area  belongs_to :area_type

[Rails] Re: ROR Programmers?

2011-07-03 Thread ct9a
Where is it that you need arora people. I'm one and I'm in Melbourne, victoria, AUSTRALIA On Jul 1, 10:31 pm, Brandon bhilliar...@gmail.com wrote: Where is the best place to find programmers?  I need a few ROR programmers for a quictoria -- You received this message because you are subscribed

[Rails] Can't upload files when WEBrick running in daemon mode.

2011-07-03 Thread Jen
Hi, When running my app in development with WEBrick in daemon mode I get the following error when trying to upload a file: Errno::ENOENT in UploadController#create No such file or directory - public/data/upload/google |Rails.root: /home/resource_portal/website| Application Trace

[Rails] Web services - json-rcp

2011-07-03 Thread Marketlija Pik
Hello. I am starting to write a web services in RoR, and considering different technologies to use. I am wondering if someone had experience working with json-rcp and what are its (dis)advandages over SOAP and REST. Thank you, Derek -- You received this message because you are subscribed

Re: [Rails] Can't upload files when WEBrick running in daemon mode.

2011-07-03 Thread Hassan Schroeder
On Sun, Jul 3, 2011 at 6:19 AM, Jen jen.bot...@gmail.com wrote: When running my app in development with WEBrick in daemon mode I get the following error when trying to upload a file: Errno::ENOENT in UploadController#create No such file or directory - public/data/upload/google I do not get

[Rails] Does the asset pipeline (RoR 3.1) waste cycles?

2011-07-03 Thread Jeff Pickhardt
With the Ruby on Rails asset pipeline in RoR 3.1, it's unclear if the .coffee and the //= require files get processed only once or with each asset request. For example, I have a file that looks like this: //= require source/main.js.coffee //= require source/second.js.coffee //= require

[Rails] when to add validations to database

2011-07-03 Thread Adrian Caceres
Normally all my validation is done in my models. Michael Hart in his rails tutorial explains why the uniqueness validation should also be done at the database layer ( http://ruby.railstutorial.org/chapters/modeling-and-viewing-users-one#sec:the_caveat). I am curious if people have

Re: [Rails] Does the asset pipeline (RoR 3.1) waste cycles?

2011-07-03 Thread Dieter Lunn
In a development environment it recompiles the assets on every request. When in production it does it once and adds a hash to the filename for caching. Dieter Lunn http://ubiety.ca On Sun, Jul 3, 2011 at 11:15 AM, Jeff Pickhardt pickha...@gmail.com wrote: With the Ruby on Rails asset pipeline

[Rails] Why does rendered.should have_field pass when it shouldn't?

2011-07-03 Thread David Zhang
This is my new.html.erb_spec.rb: let(:meal) do mock_model(Meal).as_new_record.as_null_object end before(:each) do assign(:meal, meal) end it shows the name text field do render rendered.should have_field(:name) # checks for both the label and the text field...

Re: [Rails] Social Networking

2011-07-03 Thread Amrit Pal Pathak
On Fri, Jun 24, 2011 at 1:52 PM, exelstu...@gmail.com exelstu...@gmail.comwrote: Try some of these: https://github.com/insoshi/insoshi#readme http://communityengine.org/ http://lovdbyless.com/ http://www.enginey.com/ Lovd by Less looks pretty good, haven’t had a chance to try it yet