Displaying 11 results from an estimated 11 matches for "your_model".
2006 Jul 22
2
selected values in combo box
how to set default value in combo box or whether there is another way
plz explain with example code
advance thx
have a nice day
--
Posted via http://www.ruby-forum.com/.
2006 Mar 19
2
Functional Testing
Hey all,
I have a many-to-many relationship (Questions
has_and_belongs_to_many Answers), and when I destroy
the Question (the one) I also destroy all the Answers
(the many).
Since the following doesn''t seem to work for
has_and_belongs_to_many:
class Question < AR::Base...
has_and_belongs_to_many :answers, :dependent =>
:destroy
end
I have this embedded in a transaction block
2006 Jun 10
4
collection_select question
How do I specify which option should be initially selected when using
the collection_select command? I''ve tried:
collection_select(:selectionfilter, :producer_id, Producer.find(:all),
:id, :name, {:include_blank => true, :selected_value =>
@initial_selection})
However it doesn''t return the desired results (the option with the value
of @initial_selection selected).
2006 Jun 02
3
Advice, why value_before_type_cast in FormHelper?
I am wondering why is in creating text fields with form_helper used
value_before_type_cast instead of attribute value for field value?
I set rails enviroment so date fields are in european format
(dd.mm.yyyy) and would like to have same format in forms, but because of
value_before_type_cast is called, form fields are filled with
''yyyy-mm-dd'' or timestamp integer, etc.
2010 Jun 09
1
equivalent of stata command in R
...slate the Stata commands. Not everybody is fluent
in those. It would even help more if you would enlight us about the
function you used to fit the model. Getting the marginal effects is
not that hard at all, but how depends a bit on the function you used
to estimate the model.
You can try
predict(your_model,type="terms",terms="the_term_you're_interested_in")
For exact information, look at the respective predict function, eg if
you use lme, do ?predict.lme
Be aware of the fact that R normally choses the correct predict
function without you having to specify it. predict() works...
2011 Oct 18
15
Generate model from database
hello i want to ask, how to generate model from table in my database.
That''s possibel ?
--
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 email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send
2006 Jul 27
9
Introspecting validates_presence_of
Hello people,
I''d like to detect whether an attribute of a model has
vaildates_presence_of applied to it so I can automatically apply a
mandatory (*) to the field...it doesn''t look easy...any ideas?
Cheers,
--
Dan Webb
http://www.danwebb.net
2009 Feb 09
1
mail return value
Hi
I''m using this method to send emails
def send_report(name, email, content)
recipients email
subject "My subject"
from "no-reply-UG3EKd521ZA@public.gmane.org"
body :content => content
content_type "text/html"
end
I''d like to know if the email has been sent or not
2010 Jun 09
1
equivalent of stata command in R
Dear all,
I need to use R for one estimation, and i have readily available stata command, but i need also the R version of the same command.
the estimation in stata is as following:
1. Compute mean values of relevant variables
. sum inno lnE lnM
Variable | Obs Mean Std. Dev. Min Max
-------------+--------------------------------------------------------
2010 Jan 08
4
fast lm se?
dear R experts---I am using the coef() function to pick off the coefficients
from an lm() object. alas, I also need the standard errors and I need them
fast. I know I can do a "summary()" on the object and pick them off this
way, but this computes other stuff I do not need. Or, I can compute (X'
X)^(-1) s^2 myself. Has someone written a fast se() function?
incidentally, I think
2010 Jun 09
1
equivalent of stata command in R
.... It would even help more if you would enlight us about the
> > function you used to fit the model. Getting the marginal effects is
> > not that hard at all, but how depends a bit on the function you used
> > to estimate the model.
> >
> > You can try
> > predict(your_model,type="terms",terms="the_term_you're_interested_in")
> >
> > For exact information, look at the respective predict function, eg if
> > you use lme, do ?predict.lme
> > Be aware of the fact that R normally choses the correct predict
> > function w...