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:
%=
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
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
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
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
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
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
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
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
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...
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
11 matches
Mail list logo