Displaying 20 results from an estimated 500 matches similar to: "Basic database question"
2009 Feb 18
3
wrong number of arguments (1 for 0)
Hello,
I am new to ruby on rails. When I tried to create a session I am
getting an error, ''wrong number of arguments (1 for 0)'', in my
controller.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ArgumentError in CustomerController#add_to_cart
wrong number of arguments (1 for 0)
RAILS_ROOT: /project/bob_shopping
Application Trace | Framework Trace | Full
2012 Sep 30
2
Run ruby web app from command line
Hello
I made a quite simple ruby web app. It uses scrubyt and mysql to store
results as cached results. The program is quite simple. It shows a
form, you enter a value and the controller makes an external http
call, parse the data and show the result for the user.
But I have a problem. I have the requirement to let a ruby program
from command line more or less run the same function that on web
2006 May 25
7
Grouping controllers
I''m grouping controllers to avoid cluttering the top-level namespace.
First, I used script/generate Admin::Customers new edit show list and then I
used
script/generate Admin::Providers new edit show list.
The generator created the subfolders correctly: I have an admin folder and
inside there''s customer_controller.rb and provider_controller.rb.
I have the same structure in
2006 Sep 14
1
wxChoicebook
wxChoicebook.rbw + patch file to bigdemo.rb
Roy
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2008 Feb 18
2
Huge number
Hi,
I'm trying to calculate p-value to findout definitely expressed genes
compare A to B situation.
I got this data(this is a part of data) from whole organism , and each
number means each expression values (that means, we could think 'a' gene
is 13 in A situation, and it turns 30 in B situation)
To findout probability, I'm going to use Audic - Claverie Method. ( The
significance
2013 Oct 21
6
I think I've found a mistake in Rails tutorial
At the point of this section
*http://ruby.railstutorial.org/chapters/sign-up#sec-signup_failure*<http://ruby.railstutorial.org/chapters/sign-up#sec-signup_failure>
clicking the "Create my account" button on the signup form shows the
following image at
<http://ruby.railstutorial.org/images/figures/signup_failure_rails_4.png>
According to the tutorial, I must modify
2010 Dec 29
5
Beginer: Question about routing on Rails 3
I bought this book about rails for beginers (head first Rails)
and its quite simple and good for someone who has no clue about Rails
(or any other language)
On chapter two it talks about routing
but unfortunately the book is for rails 2 and i have rails 3 installed
on my mac.
The line i have to enter in the config/routes.rb of my application is:
map.connect ''/ads/:id'',
2013 Oct 21
8
git push not working
<https://lh4.googleusercontent.com/-IA0TutFw54A/UmVnJwi7CHI/AAAAAAAAAzg/fEZFf_kHsug/s1600/git.gif>
Hi again,
I''m working on http://ruby.railstutorial.org
section
http://ruby.railstutorial.org/ruby-on-rails-tutorial-book#sec-git_push
I''m trying to push the repository to the remote site but what ever I fials.
I''ve updated, removed the s of the https etc but still
2005 Nov 16
4
What happened to mysql connection?
I''ve been using Rails for more than six months and until today I had
no problem with mysql connection.
It''s a Mac OS X 10.4 box having rails installed and updated by gem. I
use a remote mysql server no local instance installed.
Here''s my config:
development:
adapter: mysql
database: hdchat
host: 10.0.0.1
username: webuser
password:
test:
adapter:
2010 Jul 29
1
Testing controller and action with parameters
I have an action and I am testing it like this:
The action:
==========
def create
@event = Evento.new(params[:event])
@event.aproved = false
if @event.save
redirect_to :action => "index"
else
render :action => "new"
end
end
The RSpec test:
==============
before do
@event = mock_model(Event)
2015 Mar 05
2
Samba 4.1.6 on Ubuntu for IBM Power 8 has a bug?
I'm running Samba 4.1.6 with Ubuntu 14.04.1 LTS Little Endian on a Power 8
box. As I said in a previous post, I can't mount any share from machine.
I tried the same configuration with Samba 4.1.11 on Ubuntu 14.10 Little
Endian on Power 8, and it works fine.
I'm probabily wrong, but is there a bug in the binary distribution of Samba
on Ubuntu 14.04.01 Little Endian, maybe
2011 May 08
1
Spork + Autotest Failure
Hi folks, I''m going through railstutorial.org and so I apologize if
I''m hitting the wrong group here and would appreciate any appropriate
redirection if necessary.
I''ve set up Spork + Autotest as per Michael''s instructions in
http://ruby.railstutorial.org/chapters/static-pages#sec:testing_tools
Essentially by doing the following (using rvm & I''m
2010 Dec 11
3
Why doesn't Heroku show the Rails default page?
Following chapter (1) of the Ruby on Rails tutorial:
http://railstutorial.org/, I was able to successfuly push the
application to "Heroku" using:
> git push heroku master
But, when I open the website, I get a page with the following:
App crashed
This application is temporarily offline.
If you''re the administrator of this app, please check your heroku logs
for the backtrace.
2010 Oct 20
3
rspec error's when checking LayoutLinks from the railstutorials
I am following the rails tutorial:
http://railstutorial.org/chapters/filling-in-the-layout#top
Basically the test is something like:
spec/requests/layout_links_spec.rb
require ''spec_helper''
describe "LayoutLinks" do
it "should have a Home page at ''/''" do
get ''/''
response.should
2007 Dec 11
2
the observed "log odds" in logistic regression
Dear list:
After reading the following two links:
http://luna.cas.usf.edu/~mbrannic/files/regression/Logistic.html
http://www.tufts.edu/~gdallal/logistic.htm
I've known the mathematical basis for logistic regression.However I am
still not so sure about the "logit "
For a categorical independent variable, It is easy to understand the
procedures how "log
2011 Oct 02
5
tutorial: gravatar_image_tag problem
Hi all,
Still working through the Hartl tutorials. Making progress but am hitting
(another) wall.
The repository is on github at: git-9UaJU3cA/F/QT0dZR+AlfA@public.gmane.org:aamax/sample_app.git if you
want to see the code. I''ve pretty much followed the tutorial exactly except
I am using rails 3.1.0 rather than 3.0.1 and some of the other gem versions
are different.
I
2013 Oct 17
5
Newbie - Installation Problems
Hi,
If im in the wrong place please redirect me:
I have decided that i''m goignt o jump inand learn rails the hard way. I
know I have to go through the initial learnign curve. One of them is to
know where to go when you get stuck.. so here goes...
I''m installing on Windows 7. using guide:
http://guides.rubyonrails.org/getting_started.html
Ruby version:1.9.3p392
Rails
2012 Jun 30
4
find_by_sql and join
hi
I amd tanizawa.
I had problem.
I can not get main.name value from below sql.
"find_by_sql ''select main.id,main.name,sub.name from main left join sub
on sub.id = main.id''"
Please teach me how to get borth name value.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the
2012 Jun 27
2
Select Helper Array of Array + Filter
Noob alert!
Hi, I am having trouble figuring out how to filter a select helper. The
following shows all of the rows in the table but I would like to filter
the collection from the list_name column (:list_name => "Project
Status"):
@project_status = Valuelist.all.collect {|s| [s.list_value,s.id]}
Thanks in advance, James
--
Posted via http://www.ruby-forum.com/.
--
You received
2012 Jul 19
6
Rendering Partial
I am a bit confused when coming from layout and partials.
To start of I have a file called application.html.erb which has my
layout such has follow
<html>
<head>
<body>
<%= render ''layouts/footer'' %>
</body
</html>
This call a new file _footer.html.erb
This file his has follow
<footer class="footer">
<nav>
<%=