Displaying 20 results from an estimated 700 matches similar to: "do you think it's the best solution?"
2012 Oct 09
0
Form Design issue - How to handle a parent association input..
I have an Event Model with a parent Place association
class Event < ActiveRecord::Base
belongs_to :place
accepts_nested_attributes_for :place
attr_accessible :place_attributes
In a new event registration form, the user should have the choice to :
- select from an existing Place
- enter a new Place in a nested form
= simple_form_for @event
= f.association :place, :collection =>
2013 Jun 13
0
¿Alguna explicación para este fenómeno? (Relativo al uso de memoria)
Estimado Carlos
Sobre:
¿Seré yo el único al que los dichosos factores le han hecho perder
horas y horas de trabajo?
Si usted supiese en mi caso las cosas fáciles que me hacen perder tiempo.
¿Hay alguna herramienta que verifique lo que realiza el código?
Yo no soy programador pero vi en visualstudio o en netbeans, algunas formas
donde colocando puntos en ciertas partes del código es posible
2003 May 22
0
Please help ! can't get it to work properly !!!
Hi all !
I don't know what else to do but I absolutely can't get it to work !!! :(
I've installed 2.2.8a on my SGI 6.5.17 workstation and all the tests
I've done failed. I'm getting quite desperate. :(
Ok. Point by point I'll try to explain what I did.
- Installed the 2.2.8a successfully and started it successfully.
- Logged in the samba (almost) successfully from the
2013 Mar 14
0
[Rails 3.2] accepts_nested_attributes_for and time_select
Hi, I am upgrading a Rails application from Rails 3.1.11 to 3.2.12, but
have a problem with ` accepts_nested_attributes_for` in conjunction with
multipart attributes.
The app is used to manage oral exams, so there is a model `Exam`, which has
many `Examdate`s. When creating an exam, I can also create the examdates,
consisting of a date, a start time and an end time. While the date field is
2017 Aug 17
0
PAM Clustering
Sorry, I never use pam. In the help, you can see that pam require a
dataframe OR a dissimilarity matrix. If diss=FALSE then "euclidean" was use.So,
I interpret that a matrix of dissimilarity is generated automatically.
Problems may be in your data. Indeed
pam(ruspini, 4)$diss
write a dissimilaty matrix
while
pam(MYdata,10)$diss
wite NULL
2017-08-17 16:03 GMT+02:00 Sema Atasever
2013 Jun 13
0
¿Alguna explicación para este fenómeno? (Relativo al uso de memoria)
Estimados
¿que pasa con opciones como bigdata o semejantes? Tendría que probar, leer,
etc., pero puede ser que algún algoritmo distinto solucione esos problemas.
Recuerdo una presentación que creo que la realizó alguno de la lista donde
utilizaba millones de datos, eran de aeropuertos, tráfico aéreo, algo de eso
había leído en una oportunidad.
Javier Marcuzzi
-----Original Message-----
2009 Jun 24
1
accepts_nested_attributes_for :reject_if issue
I have the following models:
class Order < ActiveRecord::Base
belongs_to :billing_address
belongs_to :shipping_address
accepts_nested_attributes_for :billing_address
accepts_nested_attributes_for :shipping_address, :reject_if => proc {
|attributes| attributes[''has_shipping_address''] != ''1'' }
def after_initialize
self.build_billing_address
2011 Jul 25
1
3 models in a form.
Hello,
class Customer < ActiveRecord::Base
has_many :deliveries
class Delivery < ActiveRecord::Base
has_many :delivery_items
has_many :products, :through => :delivery_items
belongs_to :customer
class DeliveryItem < ActiveRecord::Base
belongs_to :delivery
belongs_to :product
I create a new delivery for customer x:
= simple_form_for @customer do |f|
= f.simple_fields_for
2013 Jun 13
1
¿Alguna explicación para este fenómeno? (Relativo al uso de memoria)
Javier,
R también tiene opciones de "debug" como la que estás comentando.
Te adjunto un ejemplo práctico:
http://www.burns-stat.com/an-r-debugging-example/?utm_source=rss&utm_medium=rss&utm_campaign=an-r-debugging-example
Saludos,
Carlos Ortega
www.qualityexcellence.es
El 13 de junio de 2013 21:45, Marcuzzi, Javier Rubén <
javier.ruben.marcuzzi@gmail.com> escribió:
2013 Jun 13
1
¿Alguna explicación para este fenómeno? (Relativo al uso de memoria)
Hola, ¿qué tal?
Lo que quieres es un "debugger visual" (como el de muchos IDEs,
incluyendo Netbeans y Eclipse) para R, como el de Revolution,
http://www.youtube.com/watch?feature=player_embedded&v=7shLKEINM9A#!
Pues sí, efectivamente, existe, pero solo con la versión de
Revolutions de R. Y verás también que está basado en el "debugger"
tradicional de R, que permite
2002 May 18
0
Importante!
Vuoi Davvero Guadagnare con Internet?
Bene, salva su disco questa pagina per averla a portata di mano
anche se il tuo PC non ? connesso a Internet,
poi
copia quanto segue in Word o in Blocco Note e stampalo,
cos? lo potrai leggere con pi? attenzione.
Questo Sistema ? diverso da tutti gli altri, quindi non essere precipitoso nel valutarlo senza averlo compreso a fondo,
ma ti assicuro che
2010 Oct 07
1
Question on polymorphic association
I have 3 models . Doctor, Patient and User
with following associations
class Doctor < ActiveRecord::Base
has_many :patients, :dependent => :destroy
has_one :user, :as => :userable
accepts_nested_attributes_for :user
end
class Patient < ActiveRecord::Base
belongs_to :doctor
has_one :user, :as => :userable
accepts_nested_attributes_for :user
end
class User <
2013 Mar 30
1
How to use group in nested associations
The below query fails:
Timesheet.joins(:time_entries).select("timesheets.*,
sum(time_entries.worktime) as total").group("timesheets.start_date")
The models have the following relations:
Timesheet < AR
has_many :activities, dependent: :destroy, inverse_of: :timesheet
has_many :time_entries, through: :activities
accepts_nested_attributes_for :activities,
2013 Mar 25
1
validates presence of foreign key fails in nested form
I''m using accepts_nested_attributes as follows:
class Timesheet < ActiveRecord::Base
attr_accessible :status, :user_id, :start_date, :end_date,
:activities_attributes
has_many :activities, dependent: :destroy
has_many :time_entries, through: :activities
accepts_nested_attributes_for :activities, allow_destroy: true
end
class Activity < ActiveRecord::Base
attr_accessible
2012 Jun 18
1
Interactive Graphics
Hi,
I'd like to make an interactive graph like this:
http://blog.ggplot2.org/post/25201174009/name-popularity
I believe he was done with the ggplot2 and saved in svg format. if someone
has experience with this subject (graph interactive web) could give me a
help?
Thanks
--
Éder David Borges da Silva
ederdbs@gmail.com
ederdbs@hotmail.com
Skype: ederdbs
041 96717488
"Tudo é
2010 Aug 09
1
(no subject)
Spett.le Cliente,
dal 9 Agosto 2010 al 29 Agosto 2010UT non sar? in grado di leggere le email inviate a questo indirizzo.
Per urgenze compilare il form sul nuovo sito della Computer srl http://www.computersrl.com/home/component/jforms/4/88.html
o chiamare il numero 0438.450500
Grazie
Giuseppe Corazzin
COMPUTER srl
Via Conegliano 94/b - 31058 SUSEGANA (TV)
Web: www.computersrl.com
2010 Aug 09
1
(no subject)
Spett.le Cliente,
dal 9 Agosto 2010 al 29 Agosto 2010UT non sar? in grado di leggere le email inviate a questo indirizzo.
Per urgenze compilare il form sul nuovo sito della Computer srl http://www.computersrl.com/home/component/jforms/4/88.html
o chiamare il numero 0438.450500
Grazie
Giuseppe Corazzin
COMPUTER srl
Via Conegliano 94/b - 31058 SUSEGANA (TV)
Web: www.computersrl.com
2010 Feb 25
1
accepts_nested_attributes_for vs. multiple controllers on one page
Hi,
I''d like to render the results from show, create, edit and delete
actions for several different models (one controller per model) on one
page.
While these several models are conceptually related, they do not need
to be associated with each other. So, I''d rather not impose
associations on them just to use accepts_nested_attributes_for to
facilitate their presentation in a
2011 Jul 16
0
nested_form gem don't work for accepts_nested_attributes_for :limit
Hello, I have the next:
class Post < ActiveRecord::Base
has_many :image, :dependent => :destroy
accepts_nested_attributes_for :image, :allow_destroy => true, :limit
=> 4
end
class Image < ActiveRecord::Base
belongs_to :Post
... paperclip settings ...
end
And the form view for the post is:
<%= nested_form_for @post, :html => { :multipart => true } do |f| %>
2012 Aug 25
0
accepts_nested_attributes_for and fields_for not working!
I want to be able to create one menu object that has fields_for :brunch,
:lunch, and :dinner. The menu object has_many brunches, lunches, and
dinners, but each time I "edit", only one brunch, one lunch, and one dinner
object are added. I''m using carrierwave to upload brunch_menus,
lunch_menus, and dinner_menus (attributes of brunches, lunches, and dinners
respectively) as