similar to: Set a select box with default value selected

Displaying 20 results from an estimated 1200 matches similar to: "Set a select box with default value selected"

2008 Dec 23
2
NoMethodError in Book#show_subjects
Hi, I am quite new to ROR.I am trying to create a rails simple application that has informations about Books and Subjects.Srangely, I finished creating a basic application, and it worked fine. But then , I just tried to add some more values in the database, and faced problem with migration, that just made me crazy. SO I deleted the database and did the database and migration thing all over again
2009 Aug 19
11
Rails demo not showing up.
Hi, Can''t get the rails demo to run. I''ve started the webrick server. Here is what the output looks like: ----- [root@chat demo]# ruby script/server => Booting WEBrick => Rails 2.3.3 application starting on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2009-08-18 21:29:41] INFO WEBrick 1.3.1 [2009-08-18 21:29:41] INFO ruby 1.8.5
2008 Dec 20
4
uninitialized constant BooksController::Books
hi new to rails ... wat does it means... uninitialized constant BooksController::Books /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:102:in `const_missing'' app/controllers/books_controller.rb:5:in `index'' -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are
2009 Jul 16
12
Find_all_by and find(:all) to only select certain values for a selection box
So....let''s have a look if I understood the issue: -Find_all_by is actually the same like Find(:all), however Find_all_by is much shorter and less complicated than the syntax of Find(:all) -So in my CONTROLLER it says @files = find(:all) however I don''t want to see all files displayed in my selection box, because I only want to see the foles whose mandant_id is the same like
2008 Oct 16
4
Removing values from a select (drop-down) box
Hello, I am working on a project, and on one form we have a select (drop- down) box where the user needs to be able to select from a list of clients. The box is currently being populated with: <%= collection_select(:client, :id, @account.clients, :id, :name) %> The problem is that some of these clients may have already been selected, and we need to remove them from the list. Is this
2005 Jun 06
1
don't want xtab sorting "numeric" factors...
r-gurus, I couldn't find an answer to this and after an hour or so of trying all types or ways to do this, I've given up for now. I'm having trouble getting the results from xtabs to generate "unsorted" factors. I've generated a sample data.frame I want to create a table from, using xtabs, and the results are presented below, > temp treatment itpa qmd
2006 Jan 31
3
Lost in routing
I''m trying to create a modules based system where my controllers are all under modules. So the structure looks something like: app/ controllers/ message/ news_controller.rb email_controller.rb library books_controller.rb pictures_controller.rb home_page_controller.rb Each of those controller has
2009 May 11
7
Upload file with url parameter
I want to upload file using get method. for example, "http://www.mydomain.com/upload?file=c:\test.exe" upload my local file to the remote server. I found one useful link about file uploading here(http:// www.tutorialspoint.com/ruby-on-rails/rails-file-uploading.htm). Even I''ve changed some code in order to fit my rails version, it worked well. But the problem is I have use
2003 Nov 06
2
created data doesn't remain when split...
I've been trying to figure out why the following is happening.... I've got some data I'll load in from a file... rm(list=ls(all=TRUE)) trees <- read.table( "c:/cruisepak/data.txt", header=T) trees$ct <- 1 And when I create some temp variable, then split the data to perform further processing, the additional column doesn't maintain the data correctly.... mtrees
2008 Jul 04
9
file upload
is there any link for step by step guide in file upload in database ... im follwing the link http://www.tutorialspoint.com/ruby-on-rails/rails-file-uploading.htm.. which shows file upload into folder not in database ..pls help.. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2006 Dec 24
6
What do you think of this controller spec?
Here''s a controller spec I wrote, it''s for a very simple RESTful controller (well, aren''t all RESTful controllers simple? :) I''ve created a couple spec helper methods to refactor some of the common code...for example, require_login_and_correct_user creates two specifications: one for when the user isn''t logged in, and one when the user is logged in but
2018 May 08
2
help with json data from the web into data frame in R
Hello I am able to construct a url that points to some data online in the JSON format. See an example at [0]. I would like to work with this data as a dataframe in R. I know that there is a package for handling json data [1] but it assumes the data is in a local file but It is not clear to me how to request the data from the web in an R script and get the json data converted into a data frame
2007 Oct 23
6
Any Xen kernel based on something newer than 2.6.18 ?
Hello all, I''m trying to get my servers to work with Xen, but as I use sata2, it looks like only a recent kernel will do the job. But unferotunately, ony and official 2.6.8 is provided, which doesn''t boot at all on those machines. I''ve tried ubuntu''s 2.6.22-xen, but ti looks very buggy. Where could we find patches for 2.6.22/23 to add Xen? How could I gete a
2008 Jun 15
5
Ruby on Rails 2.1 Tutorial
Hi, I have put all the basic things in place and you will find it a working tutorial for Ruby on Rails 2.1. http://www.tutorialspoint.com/ruby-on-rails-2.1/ I have covered Model, Controller and Views in detail and you will find a nice example on scaffolding. If you like this tutorial then please share it with others....Oh yes...if you have any feedback then please definitely send it to me.
2008 Aug 11
3
Peoblem with nls and try
Hello, I can`t figure out how can increase the velocity of the fitting data by nls. I have a long data .csv I want to read evry time the first colunm to the other colunm and analisy with thata tools setwd("C:/dati") a<-read.table("Normalizzazione.csv", sep=",", dec=".", header=F) for (i in 1:dim(a[[2]]]) { #preparazione dati da analizzare
2011 Apr 25
30
NoMethodError in Book
I got a following error. NoMethodError in Book#new Showing /home/amrit/boook/app/views/book/_form.html.erb where line #1 raised: undefined method `model_name'' for NilClass:Class The content of _form.html.erb file are: <%= form_for(@post) do |f| %> <% if @post.errors.any? %> <div id="error_explanation"> <h2><%=
2000 Jul 30
4
Vorbis On Macintosh
I doubt that their has been any development work on bringing vorbis to the Mac. I am trying to do just that. I want to know whether you think I should try to port it using the various components tht are being used to bring vorbis to Be and others OR if i should wait till September when the public beta of Mac Os X ( which is based on Unix). I have been told that unix stuff will be fairly
2008 Oct 16
3
help required
Dear ALl, I have the following live setup . Centos 5.1 running as a Mail and DNS server with the following software Sendmail ver MailScanner ver squirrel mail clam av spamassassin mailwatch we have about 250 mail users all with no shell and every thing is working perfectly fine now i wd like to know the following . 1) if i have a copy of my /etc/passwd file and the /etc/skel/shadow file and
2011 Feb 03
1
How to transfer a javascript value into a symbol used in Ruby on Rails
Hi, I am currently using Rails 2.0.2 with Ruby 1.8.7. My Prototoype.js version is 1.7(if required). I am basically trying to integrate the calendar_date_select plugin in my app. The link/tutorial I am referring is: http://ianli.com/site/HowTo/UseCalendarDateSelectRailsPlugin I am trying to save the date I receive through the date select plugin and store in a rails symbol :publishing_date. I am
2008 Jun 18
1
Ruby on Rails 2.1 Unit Testing
Hi, Just introduced few more chapters in my Ruby on Rails 2.1 tutorial. Most interesting one is Unit Testing of RoR Applications. Just go through it and send me your comments. http://www.tutorialspoint.com/ruby-on-rails-2.1/rails-unit-testing.htm Thanks. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are