Displaying 20 results from an estimated 400 matches similar to: "dynamic models"
2006 Mar 15
8
Tags to ruby interface: What I am missing? (repost)
I offer my apologies in advance for the repost. On a list as busy as
this, it is sometimes easy to get missed in the shuffle.
I am trying to create, display and edit a referenced object''s text field
on the same view as my root object.
For example:
-------------------------
Quiz: <<quiz.name>>
Preamble: <<quiz.preamble_presentation.text>>
Postamble:
2014 Sep 22
1
samba downgrade?
i am currently running version 4.2.0pre1-GIT-e6f79b9. Don't remember how
i got this installed, but i wanted to know if i can downgrade this
version to a stable version ? My setup of samba is AD DC.
thanks
jef
2010 Aug 30
1
'mgcv' package, problem with predicting binomial (logit) data
Dear R-help list,
I?m using the mgcv package to plot predictions based on the gam function.
I predict the chance of being a (frequent) participant at theater plays vs.
not being a participant by age.
Because my outcome variable is dichotomous, I use the binomial family with
logit link function.
Dataset in attachment, code to read it in R:
data <- read.spss("pas_r.sav")
attach(data)
2009 May 25
4
after_create and has_one association bug?
Hello,
I''ve come across an issue that I''m sure is a bug when using after_create
with a has_one association, but I''m not 100% certain if I''m missing
something.
This is pretty much exactly the code I''m using. Two simple classes
(Account and Contact) and I create the contact after I create an account
(via after_create). I''m not passing in a
2010 Dec 03
1
mgcv package plot superimposing smoothers
Dear R help list,
I'm fitting a 'variable coefficient model' in the MGCV package and I want to
plot the different smoothers I get for each factor level in one graph.
So, I do something like this to fit the gam:
Mtest <- gam(outcome ~ s(age, by=as.numeric(gender==0)) +
s(age,by=as.numeric(gender==1))+factor(Gender))
Then I can plot the smoother for gender=0:
plot(Mtest,select=1)
2009 May 27
12
query on Ruby array
Looking for suggestions on following two queries.
Query 1
------------------------------
Are the two following lines of code different in Ruby / Rails ( in a
*.html.erb) file.
<% if @forms.count != 0 %> <!-- first code -->
Vs.
<% if @forms.count %> <!--second code -->
@forms is an array of objects. Coming from "C" language development
background, i thought
2006 Apr 02
2
"Quiz" site
Hi,
I am thinking about how to best design a quiz site in RoR. I think it
should be fairly easy, but have run into a wall. In the simplest form,
the view would grab all of the questions for a particular quiz and
display them (e.g. multiple choice, so 4 option buttons per question).
However, I can''t figure out how to "mark" the quiz. The form is
submitted to the
2010 May 05
6
form remote tag :before=> function problem
Hi I have a strange problem, I am using the below code
form_remote_tag :url => ''/abc/test'',:before => "return hello();",
:update=>''test_categories'' ,:complete => "Element.hide(''spinner'')",
:loading => "Element.show(''spinner'')" do
I am using :before=> function to validate the
2009 May 05
4
modalbox rails var interpolation
Howdy everyone.
I am using modalbox which is very nice an easy to use. I have this
for an edit for a company listing:
<td><%= link_to(''Manage Companies'', {}, :onclick => ''Modalbox.show(\''/
companies/edit/#{company.id}\'', {width: 600}); return false;'') %></td>
The link is not putting the company.id in it puts #{
2009 May 25
1
Passing a JavaScript variable through a Rails params hash
Hi guys, hoping someone can give me a pointer with this?
I have a Javascript variable that I''m updating dynamically as a user
interacts with the page. I want the user to be able to save it''s value
at any time along with some text data in a pop-up form, so the best way
I can think of is to pass it through the params hash without writing it
into the form. I''m not totally
2013 Oct 14
1
File permission problems after update from Samba 4 alpha 17 to Samba 4.0.5
We had used Samba alpha 17 (included in Resara Server 1.2) for a long
time and
has now migrate it to Samba 4.0.5 (Ubuntu + Zentyal 3.0 PPA) with NTVFS
enabled .
Most things seems to work: DNS with Bind9_DLZ, domain join, user login
and also GPO are still working fine :)
But we have trouble with file permissions now!
All domain users can't rename or delete their own files which they had
2006 Jun 08
1
Problem with dovecot-lda
I have installed the dovecot 1.0 beta3 (package included with Ubuntu
Dapper Drake) and everything is working very well. Next I wanted to try
the dovecot lda (for sieve filtering).
In postfix I have "mailbox_command = /usr/lib/dovecot/deliver" and I
followed the instructions from http://wiki.dovecot.org/LDA. I only
changed "postmaster_address = postmaster@localdomain.local"
2009 Dec 03
5
Bar Plots: Error Bars
Hey Everyone,
I'm pretty new at R and wanted to try and make some graphs with dummy data
before using it to analyze my own. I successfully made a bar graph and error
bars, but I can't figure out how to align them properly (currently they are
not centered on the bars and some of them aren't even close). Here's the
code that I'm using:
> marks <- sample(4:10, size=50,
2008 Apr 07
7
Saving attribute
Something is getting lost here.
def create
@home = Team.find_by_user_id(current_user.id)
for player in @home.players
player.update_attribute(:game_id, @game.id)
end
end
def show
@players = Player.find_all_by_game_id(params[:id])
end
view
<%= @players.size %> # mistakenly equals zero
Played with the console and everything should be working fine...
2009 May 27
9
Contingent Select Boxes - 2 Q's
I have a form with contingent select boxes (the state is contingent on
the country selected, so when the country selected changes, the state
changes -- I am using the Carmen plugin for getting my state names and
country names together, but not the functionality I am interested in
achieving).
Everything works fine except I cannot figure out how to amend my code
such that:
A. When the form is first
2006 Mar 09
2
Newbie question: How to represent parent-child denormalization
I am building a relatively trivial application to try to learn my way
around Rails. I am having difficulty understanding how to navigate a
heavily denormalized hierarchy. Could someone direct me to a bare-bones
explanation of using rails to navigate database hierarchies?
I am an experienced developer. Most of my work has been desktop client
server, high performance, or server to server
2008 Apr 15
4
ActiveRecord::StatementInvalid in BlogController#index
Hello. I''m trying to do the video tutorial "how to build a blog engine
in 15 minutes with ruby on rails" from the main rubyonrails website,
and I''m getting an error when I try to use scaffold :post after
editing my config file for the mysql database.
Here is the exact error I''m getting:
ActiveRecord::StatementInvalid in BlogController#index
2008 Apr 02
9
Problem getting the most recent has_many associated object
I can''t get my view to display the most recent parameters from an
associated object in a view... here is a birds-eye of my app:
I have two models, Ferms and Kinetics. Ferm has_many :kinetics,
Kinetic belongs_to :ferm. Kinetic has the fields ferm_id, brix and
temp.
In my ferms/index view I have a table listing the attributes of each
ferm instance. I would like to display the most recent
2008 Mar 14
3
Encoding system
Hi ,
By default encoding system is UTF-8 for ROR request and ajax request.
How to change the encoding for this both type of request?
Thanks
--~--~---------~--~----~------------~-------~--~----~
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
2009 May 25
2
CAn u please tell wats the prob in runnning my project?
[~/kallori]# rake db:migrate
(in /home/gm/kallori)
no such file to load -- hmac-sha1
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require''
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require''
/home/gm/kallori/vendor/rails/activesupport/lib/active_support/
dependencies.rb:510:in `require''