Displaying 20 results from an estimated 2000 matches similar to: "You cannot have more than one Rails::Application (RuntimeError)"
2011 May 20
3
Div style changes
Rails is not changing my divs styles.
I made a new layout and set a div''s style to style="width:2000" but it
does not change the width. Any ideas?
--
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
2011 Jun 21
2
Find by parameter
Hi,
I''m trying to do a query on controller for get list by a boolean value
I do
@movies = Movie.where(:active => 1)
This value is already on form and it is being written on database, but when
I write a block, I still picked up the list of all videos
Can anyone see what I''m doing wrong?
Thanks!
--
*Fernando Aureliano*
--
You received this message because you are
2012 Jan 22
4
undefined method `gsub!' for 2012-01-22 17:00:00 -0500..2012-01-23 00:00:00 -0500:Chronic::Span
Hey all,
I am getting this error:
NoMethodError (undefined method `gsub!'' for 2012-01-22 17:00:00
-0500..2012-01-23 00:00:00 -0500:Chronic::Span):
in this code:
date_range = Chronic.parse(the_date, :guess =>
false)
reports.sum_distance_by_date(date_range).each do |d|
u[:m] << d
end
def
2012 Sep 14
5
ruby server chrashes
Hello,
When I do rails server it chrashed with this ouput :
http://pastebin.com/DJ21qC5h
Anyone a idea what is the cause of this problem and how to solve this ?
Roelof
--
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
2011 Sep 21
5
bundle install rmagick error in unix
I have Rails 3 and Ruby 1.9.2
Installing rmagick (2.13.1) with native extensions
/opt/local/lib/ruby/site_ruby/1.9/rubygems/installer.rb:551:in `rescue
in block in build_extensions'': ERROR: Failed to build gem native
extension. (Gem::Installer::ExtensionBuildError)
/opt/local/bin/ruby19 extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for
2006 Aug 18
3
setting a value of text_field from a controller
Hi,
I need to set up an initial value from controller. In my views I''ve
something like
<%= text_field "object", "name" %>
and would like to do something like this from controller
def index
@object[:name] = ''default value''
end
but still got an error. Object doesn''t have database model (and will not
have)
Thank you
PS: now using
2009 May 12
3
forms & link css classes - not working
I used a scaffold to create an interface. I''m trying to style it and
I''m having trouble. In my css I have:
#content a, a:link, a:visited{
color: #ff8400;
}
#content a:hover{
background: #ff8400;
color: #FFFFFF;
}
#content a.urgent, a.urgent:link, a.urgent:visited {
color: #FF0000;
}
#content a.urgent:hover {
color: #FFFFFF;
background: #FF0000;
}
#content input.m_title{
2009 May 07
13
what database field type should i use ??
in a database table if there is a field which has a certain set of
fixed values. for example
staus => {Single, Married, Divorced }
OR
state => {California, Albama, Olaska ...}
so what should be preferred way out of the following for storing the
values
1. Keep the field as "string(Rails)" VARCHAR(MySQL) itself ....and
while showing the field just show the field value.
2. Keep
2009 May 07
5
Controller redirect_to to leave iframe
Inside an iframe, I want the controller to redirect_to to the parent
(i.e. target =''_parent'').
Any ideas?
(Everything I''ve tried- via redirect_to - just keeps it inside the
iframe)
2011 Aug 03
2
Malformed CSV Error
Hello,
I am getting error :-
#<CSV::MalformedCSVError: Unclosed quoted field on line 1892.>.
I have following code :-
--------------------------------------------------
@parsed_file =
CSV.open("#{RAILS_ROOT}/private/sales_report_files/#{@file_folder}/#{@sub_file_folder}/#{@file_name.filename}",''r'',:col_sep
=>?\t)
@parsed_file.each_with_index do |row, index|
2011 Sep 30
5
Rails on Netbeans 6.9.1
I installed ruby 1.9.2 using RVM and then used Netbeans to install the latest
rails and gems etc.
However when I create a new rails application and click finish i get the
following error
http://old.nabble.com/file/p32569627/Screen%2BShot%2B2011-09-30%2Bat%2B16.14.01.png
Screen+Shot+2011-09-30+at+16.14.01.png
When I create a new rails project I correctly select the right version of
Ruby to use
2011 Aug 26
17
strings issue
Hi everybody,
I ve got a problem with strings and the class File in rails
Indeed, when i try to do this:
File.new("archives/sequences/archives-2011.xml")
it works perfectly, however when i do
string = "archives/sequences/" + @filename => filename being
"archives-2011.xml"
File.new(string)
it doesn''t work!
ruby tells me it cannot find the file
does
2011 May 21
4
RoR and problem with connection to MySQL database
Hello,
I am building my first application with MySQL database and I am solving
this problem - my app can''t to connect to MySQL server.
MySQL server is running, in terminal (I am working at Mac) I created
MySQL table and I set password to MySQL with using following command:
mysqladmin -u root password ''mypass''
in database.yml is:
development:
adapter: mysql2
2011 Jul 23
6
Rails 3.1 CoffeeScript not working
I convert my old JS files into CoffeeScript, In my public controller I
used this functions
$(''#events a'').lightBox()
$(document).ready ->
$("#slider").easySlider
auto: true,
continuous: true
they load inside application.js like this
(function() {
$(''#events a'').lightBox();
$(document).ready(function() {
2012 Jul 16
9
Is twitter devloped in Ror
hii
--
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 email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
2009 Mar 10
7
Managing migrations
I have a migration "x" that when it runs self.up it adds a new column
to a table, and of course when self. down is run it deletes said
table...
After I ran this migration I continued to work and in the process
added a couple other migrations. After a while I realized that the
column migration "x" created was a mistake and I no longer need it. So
I ran rake db:migrate:down
2011 May 01
2
More detailed Test::Unit error report
Hi,
I''m starting to use Test::Unit to create unit tests for my Rails
Applications/Plugins. I don''t have much experience in Ruby Unit Testing. The
problem is that the output report is very simple and it is very difficult to
discover where is the error. Test::Unit does not show the line number of the
error and the Stack Trace printed using the --trace option does not help
either.
2011 Apr 18
2
rubygems fail - require hpricot!
Hi guys,
I wanted to fetch some info from webpage and use it in my db. I read
hpricot is one way to do it. But the problem is I''m unable to use it
with my app. For some reason after successfully installing hpricot it
fails when I try to use it in the rails console.
I''ve been trying to fix this for the last four-five days. I''m stumped !
I tried re-installing everything
2012 Jan 27
3
How to test the model dependence ?
Good morning,
I''m new to rails and am having some basic questions in development. See
if anyone can help me with a test problem. I need to test if my model
"Procedure" is linked to the workflow. If not, the system must
acknowledge an error. Below is the code that is in the file test \ unit
\ procedure_test.rb.
require ''test_helper''
class ProcedureTest <
2011 May 20
3
"no such file to load -- rails/commands/runner (LoadError)"
Hi,
I am using ruby 1.9.2 and rails 3 for my application.
I have written a bash script which I want to run in cron.
If I directly run the bash file it runs. If I run it through the cron I
get the following error:-
"/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require'': no such file to load -- rails/commands/runner (LoadError)
from