[Rails] need a way to use sort_by with possible nil values

2010-09-30 Thread Bob Smith
In my view, I do a <%= render :partial => 'person', :collection => @household.people.sort_by(&:birthday) %> household has a has_many relationship with person, and this works fine until... an errant user creates a new person and tries to save without filling the fields(day, month, and year). Afte

[Rails] Re: STI with user and artist? Your thoughts please

2010-09-30 Thread Christian Fazzini
Radhames, you are suggesting one table called user? and bolean fields for is_artist, is_member? Is that right? On Oct 1, 5:19 am, radhames brito wrote: > I would go with having a boolean field for artist and then conditional > validarions, that is , if the field is true then have validations for

[Rails] Re: How do i delete mongrel temp file

2010-09-30 Thread Amit Tomar
Daniel Gaytán wrote: > I have worked with mongrel. From what I remember, the temp files of > mongrel > are stored in RAILS_ROOT/tmp/pid or something like that. > > I used to delete them with one or some of the following rake tasks: > > rake tmp:cache:clear # Clears all files

[Rails] Re: commiting doc folder to svn

2010-09-30 Thread Tom Mac
Hi I was asking about should I commit to svn the folder generated by rake doc:app ie doc/app folder completely -- 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 g

Re: [Rails] Database localization in Rails 3.0: best practices?

2010-09-30 Thread radhames brito
Take a look at this http://github.com/svenfuchs/globalize3 -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrail

[Rails] Re: how to make an ajax call to redirect

2010-09-30 Thread Glen
Here is a cleaner way. Just put the following code on your application_controller.rb. Now, redirect_to should work with Ajax calls as well as regular requests. def redirect_to(options = {}, response_status = {}) if request.xhr? render(:update) {|page| page.redirect_to(options)} else s

Re: [Rails] Plugins Not Loading

2010-09-30 Thread Greg Donald
Put the proper entry in your Gemfile, then run 'bundle install'. On Sep 30, 2010 5:43 PM, "RailsPeg" wrote: > Hi. > > I'm running Rails 3.0 on Mac OS X, and I'm trying to get the > acts_as_list, other plugins, as well as libraries running. From what > I understand, rails should be loading those au

[Rails] Plugins Not Loading

2010-09-30 Thread RailsPeg
Hi. I'm running Rails 3.0 on Mac OS X, and I'm trying to get the acts_as_list, other plugins, as well as libraries running. From what I understand, rails should be loading those automatically once placed in the proper directories. However, that is not happening in my case, and I'm getting errors

[Rails] Application to replay through Exchange 2007

2010-09-30 Thread Suriya
I have a developer who using Ruby on Rails to develop application for our company. I'm work as Exchange admin. The developer will develop an application (intranet) which will trigger email and relay via our exchange 2007, so that staff able to receive email from intranet. Currently we having proble

[Rails] Database localization in Rails 3.0: best practices?

2010-09-30 Thread Clay H.
Hi, I'm working on a project that has to be localized into 4 different languages. I have no problem localizing the non-database-driven strings, but there is some database content that also requires localization. For instance, one of the fields is a list of different types of injuries. Users of this

[Rails] Re: Completed 406 Not Acceptable

2010-09-30 Thread lgs
Good point Luke, thank you. I changed to admin_photographer_path as you suggested and it can pass the redirection. Anyway something strange is still going on here: 1) it redirect to http://localhost:3000/admin/photographer/edit.1 there's still that .1 which smell of .:format mismatching ...

Re: [Rails] STI with user and artist? Your thoughts please

2010-09-30 Thread radhames brito
I would go with having a boolean field for artist and then conditional validarions, that is , if the field is true then have validations for artist apply along with the display of those extra field in the view, if the user stops been an artist, then it would stop validating and presenting those fie

[Rails] STI with user and artist? Your thoughts please

2010-09-30 Thread Christian Fazzini
I've got user and artist. The app allows users to register. And some of these registered users can sign up as an artist as well. Should user be an STI? Perhaps i can have user as an STI, member (registered users) and artist models that inherit from user? My concern is, if we go ahead with the STI

Re: [Rails] How to use a class, put it inside a model?

2010-09-30 Thread Daniel Gaytán
I would probably put the class in a file inside lib/ folder and add a helper for displaying the feeds. <%= feeds_list %> Daniel Gaytán 2010/9/30 Lasse > class Feeds > FEEDS = %W( >http://feed.kennisnet.nl/Basisonderwijs >http://feed.kennisnet.nl/Voortgezetonderwijs >http://wp.dig

Re: [Rails] How do i delete mongrel temp file

2010-09-30 Thread Daniel Gaytán
I have worked with mongrel. From what I remember, the temp files of mongrel are stored in RAILS_ROOT/tmp/pid or something like that. I used to delete them with one or some of the following rake tasks: rake tmp:cache:clear # Clears all files and directories in tmp/cache rake t

[Rails] How to use a class, put it inside a model?

2010-09-30 Thread Lasse
class Feeds FEEDS = %W( http://feed.kennisnet.nl/Basisonderwijs http://feed.kennisnet.nl/Voortgezetonderwijs http://wp.digischool.nl/nieuws/feed/ ) def load_feeds @feeds_ds = feeds.first @feeds = vopo? ? feeds.second : feeds.last end def feeds @feeds ||= Feedzirr

[Rails] Re: Asking for advice concerning model hierarchy and associations

2010-09-30 Thread Allison Karol
Ok, so I'm back with this "issue" of mine.. had to mainly deal with other stuff the last couple of days :) [I know I'm top-posting but didn't feel adding the full quotes here are that necessary, but will try not to repeat this often again] First of all: @Walter re-read what I previously wrote.. a

[Rails] PostgreSQL Conference West Talks are up

2010-09-30 Thread Joshua D. Drake
Hello, The talk descriptions for the upcoming PostgreSQL Conference West are up: https://www.postgresqlconference.org/2010/west/talks There is a great talk on managing lots (10,000) ruby apps with PostgreSQL. Joshua D. Drake -- PostgreSQL.org Major Contributor Command Prompt, Inc: http://www.c

[Rails] Re: Is this a good STI approach?

2010-09-30 Thread Marnen Laibow-Koser
Please quote when replying. Christian Fazzini wrote: > Marnen, in this case, what would you rather use? STI or polymorphism? STI, polymorphism, or composition? It's hard to tell from the information you've provided. It really depends on what sort of data your application stores and how the ap

[Rails] Re: commiting doc folder to svn

2010-09-30 Thread Marnen Laibow-Koser
Robert Walker wrote: > Marnen Laibow-Koser wrote: >> Robert Walker wrote: >>> However, yes I most definitely version control my application >>> documentation. >> >> Are you referring to files generated by rdoc, or other files? The >> latter definitely go into version control, but I'm not sure i

[Rails] Re: Which flavor of Linux should I use for a Rails dev box?

2010-09-30 Thread Marnen Laibow-Koser
Jeff Mapleberry wrote: > Hey everyone, > > I'm looking to set up a development server for my Rails project and have > a shiny new hard drive. Which version of Linux is the best to use? > Or does it not really matter? > > Thanks in advance for any help. I use Ubuntu. In general, it doesn't seem

Re: [Rails] Which flavor of Linux should I use for a Rails dev box?

2010-09-30 Thread Allan Wind
On 2010-09-30T20:10:31, Jeff Mapleberry wrote: > I'm looking to set up a development server for my Rails project and have > a shiny new hard drive. Which version of Linux is the best to use? > Or does it not really matter? Debian has superior package management (,

Re: [Rails] Which flavor of Linux should I use for a Rails dev box?

2010-09-30 Thread Greg Donald
On Thu, Sep 30, 2010 at 1:10 PM, Jeff Mapleberry wrote: > I'm looking to set up a development server for my Rails project and have > a shiny new hard drive. Which version of Linux is the best to use? I use Debian. > Or does it not really matter? Versioning aside, every Linux OS looks 99.99% ide

Re: [Rails] Which flavor of Linux should I use for a Rails dev box?

2010-09-30 Thread David Kahn
I am partial to Ubuntu Server 10.04 (current version). Given, I was new to Linux the first time I set it up for a production server and overall pretty easy to deal with. On Thu, Sep 30, 2010 at 1:10 PM, Jeff Mapleberry wrote: > Hey everyone, > > I'm looking to set up a development server for my R

[Rails] Which flavor of Linux should I use for a Rails dev box?

2010-09-30 Thread Jeff Mapleberry
Hey everyone, I'm looking to set up a development server for my Rails project and have a shiny new hard drive. Which version of Linux is the best to use? Or does it not really matter? Thanks in advance for any help. -- Posted via http://www.ruby-forum.com/. -- You received this message because

[Rails] upgrade to Rails3 question

2010-09-30 Thread Marcelo Barbudas
Hi! After upgrading to Rails3 and the latest plugins, two of the plugins: delayed_job and oauth_plugin don't work. They display a similar problem, I am not able to use methods they provide. In delayed_job's case I can't use Model.delay.method (undefined method) and with oauth_plugin adding oauthe

[Rails] Re: Re: Re: Re: Re: Ayuda con attachment_fu

2010-09-30 Thread Isaac Isccha
radhames brito wrote: > al parecer eres muy nuevo en rails, seria bueno que leas un poco auque > no he > buscado nunca tutoriales en español. > > Para installar plugins en rails pre 3.0 el comando es > > > script/plugin install git://github.com/thoughtbot/paperclip.git Si funciono colocando el

Re: [Rails] Re: Completed 406 Not Acceptable

2010-09-30 Thread Luke Cowell
Given the following: > = form_for(:photographer, @photographer, :url => resource_path, :html > => { :multipart => true, :method => :put }) do |f| > ... and > Rails 3.0.0 : > > namespace :admin do ># session / login / logout > resource :photographer_session > match '/login' => 'ph

[Rails] Re: Is this a good STI approach?

2010-09-30 Thread Christian Fazzini
Marnen, in this case, what would you rather use? STI or polymorphism? On Sep 30, 11:13 pm, Marnen Laibow-Koser wrote: > Christian Fazzini wrote: > > Well its the primary nature of the site. So expect to have tons of > > media types. Initially, I thought separating them would keep the > > tables s

[Rails] Re: Rails 3 Plugin v Gem using /app

2010-09-30 Thread Greg Willits
Robert Pankowecki wrote: > Devise ( http://github.com/plataformatec/devise/ ) adds some views, > controllers and helpers so you can look at the code. Maybe you are > missing the fact that you need Rails::Engine ? > http://github.com/plataformatec/devise/blob/master/lib/devise/rails.rb Thanks for t

[Rails] Re: commiting doc folder to svn

2010-09-30 Thread Robert Walker
Marnen Laibow-Koser wrote: > Robert Walker wrote: >> However, yes I most definitely version control my application >> documentation. > > Are you referring to files generated by rdoc, or other files? The > latter definitely go into version control, but I'm not sure if the > former should... Oh

[Rails] Multi-Talented Web Programmer

2010-09-30 Thread Elisa Miller-Out
[JOBS] We're looking for another web programming wizard to join our awesome team. We do a lot of Rails projects. Please send great candidates our way! www.singlebrook.com/careers -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to

[Rails] Re: Rails3: ajax responds with js template text!

2010-09-30 Thread Marnen Laibow-Koser
Parker Selbert wrote: > Naif Dalbahi wrote: >> I am so angry that the extension change was never mentioned in rails 3 >> documentation site... how are people supposed to know about that if the >> development team doesn't announce that?! > > This isn't a new change at all, and especially not spec

[Rails] Gems installing in vendor/ruby when doing bundle update

2010-09-30 Thread AK
Is it normal to have the following directory structure under "vendor" in Rails 3? /ruby/1.8/bin /ruby/1.8/cache /ruby/1.8/doc /ruby/1.8 /gems /ruby/1.8/specifications I removed the directory and did a bundle update, and it put the directory and its contents right back. I'm a little fuzzy on bun

[Rails] Re: Using Meta Data in a database field in a View

2010-09-30 Thread Marnen Laibow-Koser
nobosh wrote: > Looks like I'm storing data correctly, I don't want DATA to be a JSON > object as it won't be created via JavaScript but an Observer on > certain models after_create etc... > > What do you think about using YAML? I was told Marshal was the way to > go but after doing some google se

[Rails] Re: Is this a good STI approach?

2010-09-30 Thread Marnen Laibow-Koser
Christian Fazzini wrote: > Well its the primary nature of the site. So expect to have tons of > media types. Initially, I thought separating them would keep the > tables smaller since each media type has its own table. There's generally no point to keeping tables smaller just for the sake of keep

[Rails] Re: commiting doc folder to svn

2010-09-30 Thread Marnen Laibow-Koser
Robert Walker wrote: > Tom Mac wrote: >> Hi >>I would like to know expert opinion on this. Should I commit folders >> like doc/app into svn? What is the general strategy > > Nothing should ever be committed to svn... http://git-scm.com/ :-) Agreed! > > However, yes I most definitely version

[Rails] Word Track Changes

2010-09-30 Thread Stuart Clarke
Hey all, Is anyone aware of a library to identify the use of track changes in Microsoft Word documents? Many thanks -- 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 e

[Rails] Re: Help required...

2010-09-30 Thread Robert Walker
Newb Newb wrote: > Actually I would like to know how to send the picture name in the xml > response > > fox example picture = Picture.find(params[:id]) > > Here i need to send the picture.id in the xml response... I'm not sure what you're really asking, but maybe this will help: Terminal --

[Rails] Re: Is this a good STI approach?

2010-09-30 Thread Christian Fazzini
Well its the primary nature of the site. So expect to have tons of media types. Initially, I thought separating them would keep the tables smaller since each media type has its own table. Someone mentioned that having it as an STI is fine. Like any other app that becomes huge, we can always optimi

[Rails] Re: commiting doc folder to svn

2010-09-30 Thread Robert Walker
Tom Mac wrote: > Hi >I would like to know expert opinion on this. Should I commit folders > like doc/app into svn? What is the general strategy Nothing should ever be committed to svn... http://git-scm.com/ :-) However, yes I most definitely version control my application documentation. --

[Rails] Re: Completed 406 Not Acceptable

2010-09-30 Thread lgs
... yes, first thing I did before my very first post, anyway, can't understand what's wrong with it : Rails 2.3.8 : map.namespace :admin do |admin| # session / login / logout admin.resource :photographer_session admin.login '/login', :controller => "photographer_sessions", :action

[Rails] Re: Completed 406 Not Acceptable

2010-09-30 Thread lgs
... yes, first thing I did before my very first post, anyway, can't understand what's wrong with it : Rails 2.3.8 : map.namespace :admin do |admin| # session / login / logout admin.resource :photographer_session admin.login '/login', :controller => "photographer_sessions", :action

[Rails] Re: Completed 406 Not Acceptable

2010-09-30 Thread Frederick Cheung
On Sep 30, 1:49 pm, lgs wrote: > No it's wrong, it is a POST tohttp://localhost:3000/admin/photographer.1 > and tha page doesn't show up, it's blank. > I'd start by finding out why the url generated ends in .1. Something funny in your routes maybe? Fred > In case of Rails 2.3.8 I get - Processi

[Rails] Re: Completed 406 Not Acceptable

2010-09-30 Thread lgs
No it's wrong, it is a POST to http://localhost:3000/admin/photographer.1 and tha page doesn't show up, it's blank. In case of Rails 2.3.8 I get - Processing Admin::PhotographersController#update (for 127.0.0.1 at 2010-09-29 19:19:38) [PUT] - instead of POST and than redirect back to http://local

Re: [Rails] Is this a good STI approach?

2010-09-30 Thread Michael Pavling
On 30 September 2010 13:17, Christian Fazzini wrote: > Ive got 3 types of media. Event, photo and video. > > Most of these share common columns (title, description, etc). I am > thinking of creating a 4th model called media. And then event, photo > and video will inherit from media, making media a

[Rails] Re: Completed 406 Not Acceptable

2010-09-30 Thread Frederick Cheung
On Sep 30, 12:30 pm, lgs wrote: > I'm not sure to have the competence to fully understand your & > Frederick question, > so please, could you tell me how/where can I check that ? > I'd check what the url the form posts to is - does it look right? (ie view the html produced by the edit form) Fre

Re: [Rails] Re: fresh_when/stale? usage

2010-09-30 Thread Niels Meersschaert
The stale & fresh blocks already will send not modified back to the client. Since you are also sending it, you get a double render. On Sep 18, 2010, at 10:18 PM, badnaam wrote: > >##updated > >def index > case params[:listing_type] > when "all" >

[Rails] Is this a good STI approach?

2010-09-30 Thread Christian Fazzini
Ive got 3 types of media. Event, photo and video. Most of these share common columns (title, description, etc). I am thinking of creating a 4th model called media. And then event, photo and video will inherit from media, making media an STI. Is this a good approach? I am worried that since all su

[Rails] Re: Extract all routes and test their views?

2010-09-30 Thread Heinz Strunk
Robert Walker wrote: > An alternative, or more likely in combination with cucumber stories, > RSSpec provides routing expectations: > > Examples: > route_for(:controller => "hello", :action => "world").should == > "/hello/world" > params_from(:get, "/hello/world").should == {:controller => "hell

[Rails] Re: Completed 406 Not Acceptable

2010-09-30 Thread lgs
I'm not sure to have the competence to fully understand your & Frederick question, so please, could you tell me how/where can I check that ? Thanks in advance Luca On Sep 30, 4:40 am, Luke Cowell wrote: > I agree with Fred. What does your 'Accept' header in your browser say for the > request t

[Rails] Help required...

2010-09-30 Thread Newb Newb
Dear all Actually I would like to know how to send the picture name in the xml response fox example picture = Picture.find(params[:id]) Here i need to send the picture.id in the xml response... Please tell me that how can i go with it... -- Posted via http://www.ruby-forum.com/. -- You recei

[Rails] Re: Rails3: ajax responds with js template text!

2010-09-30 Thread Naif Dalbahi
Parker Selbert wrote: > Naif Dalbahi wrote: >> I am so angry that the extension change was never mentioned in rails 3 >> documentation site... how are people supposed to know about that if the >> development team doesn't announce that?! > > This isn't a new change at all, and especially not spec

[Rails] Re: Rails3: ajax responds with js template text!

2010-09-30 Thread Parker Selbert
Naif Dalbahi wrote: > I am so angry that the extension change was never mentioned in rails 3 > documentation site... how are people supposed to know about that if the > development team doesn't announce that?! This isn't a new change at all, and especially not specific to Rails 3. The code you

[Rails] Re: Rails3: ajax responds with js template text!

2010-09-30 Thread Frederick Cheung
On Sep 30, 11:26 am, Naif Dalbahi wrote: > Frederick Cheung wrote: > I am so angry that the extension change was never mentioned in rails 3 > documentation site... how are people supposed to know about that if the > development team doesn't announce that?! I thought the 'new' extensions were a

[Rails] Re: Rails3: ajax responds with js template text!

2010-09-30 Thread Naif Dalbahi
Frederick Cheung wrote: > On Sep 30, 10:18�am, Naif Dalbahi wrote: >> my index.js.erb has: >> [code] >> page.replace_html 'listing', partial => 'list', :locals => { :articles >> => @articles } >> [/code] >> >> the content of the js.erb template is what is returned in the response! >> why is this h

[Rails] Re: Problem with multithreading on Ruby On Rail

2010-09-30 Thread Yann Geek
Frederick Cheung wrote: > On Sep 30, 9:44�am, Yann Geek wrote: > >> I comment this line : >> config.cache_classes = false >> >> In the config, And I see it work better. >> > You definitely want that - class reloading is non threadsafe. > >> But, could you answer to this question : >> >> When onl

[Rails] Re: Rails3: ajax responds with js template text!

2010-09-30 Thread Frederick Cheung
On Sep 30, 10:18 am, Naif Dalbahi wrote: > my index.js.erb has: > [code] > page.replace_html 'listing', partial => 'list', :locals => { :articles > => @articles } > [/code] > > the content of the js.erb template is what is returned in the response! > why is this happening??? Because the above is

[Rails] Rails 3 engines testing

2010-09-30 Thread Michael Rigart
Hi all, I was wondering how you can test Rails 3 engines. Looks like the rake test task is not available by default. So I added the following in my rake task require 'rake/testtask' Rake::TestTask.new do |test| test.pattern = 'test/**/*_test.rb' test.libs << 'test' end In my test_helper.rb

[Rails] Re: Problem with multithreading on Ruby On Rail

2010-09-30 Thread Frederick Cheung
On Sep 30, 9:44 am, Yann Geek wrote: > I comment this line : > config.cache_classes = false > > In the config, And I see it work better. > You definitely want that - class reloading is non threadsafe. > But, could you answer to this question : > > When only one process run, the client wait  0.

[Rails] Rails3: ajax responds with js template text!

2010-09-30 Thread Naif Dalbahi
hey guys, I am having an issue with AJAX on rails 3. I don't know if it's a bug or something but definitely weird. Basically i have {model,controller,view} that work perfectly over http. I have an index action in my "articles" controller that searches for a search query supplied from the form on

[Rails] Re: Rails 3 Plugin v Gem using /app

2010-09-30 Thread Robert Pankowecki (rupert)
Devise ( http://github.com/plataformatec/devise/ ) adds some views, controllers and helpers so you can look at the code. Maybe you are missing the fact that you need Rails::Engine ? http://github.com/plataformatec/devise/blob/master/lib/devise/rails.rb I think that Yehuda Katz has a post about it.

[Rails] Re: Problem with multithreading on Ruby On Rail

2010-09-30 Thread Yann Geek
Frederick Cheung wrote: > On Sep 30, 9:06�am, Yann Geek wrote: > >> >> what are we seeing? >> - 5 process run together >> - Ruby take the same time for each process (760 ms) >> - BUT : RoR wait the end of each process before answer to client. >> >> finally : >> I think, there is a probleme somewh

[Rails] Re: Problem with multithreading on Ruby On Rail

2010-09-30 Thread Frederick Cheung
On Sep 30, 9:06 am, Yann Geek wrote: > > what are we seeing? > - 5 process run together > - Ruby take the same time for each process (760 ms) > - BUT : RoR wait the end of each process before answer to client. > > finally : > I think, there is a probleme somewhere. but WHERE?? could you help me

[Rails] Rails3 routes

2010-09-30 Thread bingo
I'm migrating my app from Rails 2.3.8 to Rails 3.0.0 . But I've problems in converting my routes.rb which looks like this: ActionController::Routing::Routes.draw do |map| map.namespace(:admin) do |admin| admin.resources :participants admin.resources :communities, :has_many => :participa

[Rails] no such file to load --initializer

2010-09-30 Thread apaeffgen
Hi all, issuing the command "$rake gems" in a rails-application folder leads to the error "no such file to load -- initializer" I am on centos5.2, ruby 1.9.2.p0, rubygems 1.3.7, rails 3.0 irb -> require 'rubygems' => false echo $GEM_PATH leads to /usr/local/lib/ruby/gems/1.9.1 gem environment lead

[Rails] Problem with multithreading on Ruby On Rail

2010-09-30 Thread Yann Geek
Hi, first of all, sorry for my english. to start, here my config : Server linux : ubuntu 8.4 Rails : 2.3.4 Ruby : 1.8.7 (2010-06-23 patchlevel 299) [x86_64-linux] I wanted to test the charge capacity of my server, and I saw a problem with the multithrearding on Ror. Here the config file on the

[Rails] How to download Prawn pdf while using form submit?

2010-09-30 Thread Jayamurugan Muthusamy
submit.pdf.prawn files pdf.text "successfully submitted" form controller file def index @forms = Form.all respond_to do |format| format.html end end def submit respond_to do |format| format.pdf {render } end end -- Posted via http://www.ruby-forum.com/. -- Y

[Rails] How do i delete mongrel temp file

2010-09-30 Thread Amit Tomar
Hii all, In my rails application am uploading some large file(1 Gb),and when go windows temp folder ,mongrel temporary files are gathered there,but i want to delete ,its eating disk space .. Could anyone tell me how do that?? Thanks -- Posted via http:/

[Rails] Re: Railroad problem with :through?

2010-09-30 Thread Sem Ptiri
Ar Chron wrote: > Sem Ptiri wrote: > > Is this a typo, or your problem source? > >> class Subscriber < ActiveRecord::Base >> has_many :lists >> has_many :lists, :through => :list_subscribers >> end >> > > class Subscriber < ActiveRecord::Base > has_many :list_subscribers > has_many :lists,