Johndel,
I came across your post since I have the same issue. Could you explain
your answer a bit? Where did you enter that information?
regards,
Rutger
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails:
I am using PostgreSql as database and Rails 3.1.3 and ruby 1.9.3
I have 3 models.
- Activity
- ActivityObject
- ActivityObjectActivity
They are related this way.
**Activity**
has_many :activity_object_activities,:dependent = :destroy
has_many :activity_objects, :through =
**TL;DR:
child.valid? == false
parent.save #= true
child.new_record? #= true
child is not saved, but parent _is_ saved
I had expected this to block saving of parent
Hi,
I am confused by this behavior (ruby 1.9.3 Rails 3.2.0):
class Parent ActiveRecord::Base
has_one :child
end
class Child
Hello,
First of all I am not a Ruby programmer. The reason I am writing this
post is because I took over the administration of a CentOS-server
running a Ruby-application because the former administrator is no longer
available in the company. I am novice in both Linux and Ruby so bear
with me.
As
On 24 January 2012 10:56, David Ekdahl li...@ruby-forum.com wrote:
Hello,
First of all I am not a Ruby programmer. The reason I am writing this
post is because I took over the administration of a CentOS-server
running a Ruby-application because the former administrator is no longer
available
Colin Law wrote in post #1042264:
On 24 January 2012 10:56, David Ekdahl li...@ruby-forum.com wrote:
One mysql for the application itself to store data, and one adapter for
server. Iptables is configured to pass through data on port 3306
The remote MySQL server is accepting data from
On 24 January 2012 11:10, David Ekdahl li...@ruby-forum.com wrote:
Colin Law wrote in post #1042264:
On 24 January 2012 10:56, David Ekdahl li...@ruby-forum.com wrote:
One mysql for the application itself to store data, and one adapter for
server. Iptables is configured to pass through data on
Can you provide info from log file when this action performing ?
+
Check validations in your model and what params you getting in
`params[:user]`.
On Jan 24, 8:32 am, Kapil Kaligotla kapil.kaligo...@magikminds.com
wrote:
I am using rails 3.0.10, in that i had created users using devise and
i
I had opened an existing ROR project in Netbeans 7.0. (Rails 3.1.3/Ruby
1.9.3) I was able to open the index home page of the project after
compiling and and uploading to Webrick server. After I enter the URL as:
http://localhost:3000/attachment/attach (server/controller/view-file), I
receive a
hey everyone can any one help me writing web services.i need web
services in in my project. i know purpose of the web services but i
have no idea how to write the web services. i refer few site but none
of the sites gave a clear information. do i need any gems for web
services how do i get the
Colin Law wrote in post #1042268:
On 24 January 2012 11:10, David Ekdahl li...@ruby-forum.com wrote:
To post to this group, send email to rubyonrails-talk@googlegroups.com.
Hello and thank you for the fast answer.
I am not in my office at the moment so I cannot see the files you
posted.
On 24 January 2012 11:55, Anand Srinivasan li...@ruby-forum.com wrote:
I had opened an existing ROR project in Netbeans 7.0. (Rails 3.1.3/Ruby
1.9.3) I was able to open the index home page of the project after
compiling and and uploading to Webrick server. After I enter the URL as:
hey everyone i am using rails 2.3.8 and ruby 1.8.7 . i want to
install rails 3 so how can i maintain 2 versions of rails in my pc. i
wanna learn rails 3 and can any tell the major difference in 2.3.8 and
rails 3.
--
You received this message because you are subscribed to the Google Groups Ruby
Hi Joachim,
Hope you doing Good.
Well, Myself also cross-over a same situation like this.
You can use the jquery to get that PDF symbols in site. Hope it will
resolve your Problem.
If you really want to know more about ruby on rails then click the
following.
Hi Sudhir,
The best way to get a solution to this issue is using a gem instead
of prown gem.
You can simply use the pdf-writer gem instead of prown it will
give the result what you actually expected.
Hope this information useful to you. If you really want to update
more about Ruby on Rails
I'm getting the error undefined method `accept' for nil:NilClass in my
controller. This is on the development environment running on OSX with
mysql. Below is the full stack trace and also my bundle/gem setup
information. This is reported by a couple of others on the ruby forums, and
I'm trying to
I'm creating a booking engine for personal trainers to make bookings
with their clients.
Each booking has_one workout template which in turn has_many
exercises.
When the personal trainer creates the booking I'd like them to be able
to edit the associated workout template as a completely fresh
Hi everyone,
Here is code in form.html.erb for partial view (controller rfqs).
Local var :sid was defined as the id of the record and it should be
passed into the partial view standards.html.erb as a local var.
% @rfq.standards.each do |r| %
p%= render :partial = 'standards',
Here is code in form.html.erb for partial view. Local var :sid was
defined as the id of the record and it should be passed into the
partial view standards.html.erb as a local var.
% @rfq.standards.each do |r| %
p%= render :partial = 'standards', :locals = { :f =
f, :sid = r.id } %/p
for using different versions of rails in same pc, use Ruby Version Manager
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/jKq3BlcpoKwJ.
To post
On 24 January 2012 12:16, honey ruby emailtohoneyr...@gmail.com wrote:
hey everyone i am using rails 2.3.8 and ruby 1.8.7 . i want to
install rails 3 so how can i maintain 2 versions of rails in my pc. i
wanna learn rails 3 and can any tell the major difference in 2.3.8 and
rails 3.
Use rvm
No problem. This need is fit with RVM
try it
hugs
http://beginrescueend.com/rvm/install/
2012/1/24 honey ruby emailtohoneyr...@gmail.com
hey everyone i am using rails 2.3.8 and ruby 1.8.7 . i want to
install rails 3 so how can i maintain 2 versions of rails in my pc. i
wanna learn rails
hi all,
i have captcha image on Registration popup but on local the captcha
image and code is not coming.
i have install RMagick and gd2 gem also.It gives following error,
MissingSourceFile (no such file to load -- GD):
lib/captcha_image.rb:22
These are the logs in server
Started POST /passwords/show for 127.0.0.1 at 2012-01-24 17:26:46
+0530
Processing by PasswordsController#update as HTML
Parameters: {utf8=Γ£ô,
authenticity_token=Ywh7x8r1DMlPq9277Uca7CoxaeJ
QJVxhXH9AmTR4O1c=, user={current_password=[FILTERED],
password=[FIL
On Mon, Jan 23, 2012 at 9:41 PM, emc_lab emclab2...@gmail.com wrote:
Hi everyone,
Here is code in form.html.erb for partial view (controller rfqs).
Local var :sid was defined as the id of the record and it should be
passed into the partial view standards.html.erb as a local var.
%
On Tue, Jan 24, 2012 at 12:56 PM, honey ruby emailtohoneyr...@gmail.comwrote:
hey everyone can any one help me writing web services.i need web
services in in my project. i know purpose of the web services but i
have no idea how to write the web services. i refer few site but none
of the
Now am in a situation, that is I have one query for selecting the data
from database, so when the rake file is running, this query need to
execute, and do the operation..My problem is how to execute this
query.? One thing i got in mind, call a method in a rake, in which method
write the
On 24 January 2012 03:20, emc_lab emclab2...@gmail.com wrote:
Here is code in form.html.erb for partial view. Local var :sid was
defined as the id of the record and it should be passed into the
partial view standards.html.erb as a local var.
% @rfq.standards.each do |r| %
p%=
On 23 January 2012 20:41, emc_lab emclab2...@gmail.com wrote:
Hi everyone,
Here is code in form.html.erb for partial view (controller rfqs).
Local var :sid was defined as the id of the record and it should be
passed into the partial view standards.html.erb as a local var.
%
I'm brazilian, so, sorry for English...
I'm learning Ruby on Rails.
My project has 3 tables:
- food
- restaurant
- food_restaurant
I can insert records in food and restaurant by default procedure:
-
f = Food.new :name = Arroz
f.save
r = Restaurant.new :name =
On Jan 24, 2012, at 1:31 AM, Vladiim wrote:
I'm creating a booking engine for personal trainers to make bookings
with their clients.
Each booking has_one workout template which in turn has_many
exercises.
When the personal trainer creates the booking I'd like them to be able
to edit
On Jan 24, 2012, at 8:36 AM, Bruno Furtado wrote:
I'm brazilian, so, sorry for English...
I'm learning Ruby on Rails.
My project has 3 tables:
- food
- restaurant
- food_restaurant
I can insert records in food and restaurant by default procedure:
-
f =
On Mon, Jan 23, 2012 at 15:57, Shyam Habarakada [GMail]
shyam.habarak...@gmail.com wrote:
I'm getting the error undefined method `accept' for nil:NilClass in my
controller.
At what line of code? Show us what's there. Chances are you've got a
call that looks like someobject.accept(someargs).
Hi all
I've taking over the managing of a Rails system (v. 1.2.3) that has been
writing to production.log for several years now, and the log had grown to 16
Gb, taking up half the server disc space.
I removed the logfile, doing:
$sudo mv production.log production.log.old
$sudo touch
Hello,
The log says:
Mysql::Error - Can't connect to MySQL server on 'remote.host.local'
(13):
But why... When I run mysql -h remote.host.local -u user -p form the
server it works.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the
On Tue, Jan 24, 2012 at 5:40 PM, David Ekdahl li...@ruby-forum.com wrote:
Hello,
The log says:
Mysql::Error - Can't connect to MySQL server on 'remote.host.local'
(13):
But why... When I run mysql -h remote.host.local -u user -p form the
server it works.
Could you run this on your
Peter Vandenabeele wrote in post #1042328:
On Tue, Jan 24, 2012 at 5:40 PM, David Ekdahl li...@ruby-forum.com
wrote:
Hello,
The log says:
Mysql::Error - Can't connect to MySQL server on 'remote.host.local'
(13):
But why... When I run mysql -h remote.host.local -u user -p form the
server
Any takers?
On Tue, Jan 24, 2012 at 4:14 AM, Santosh c santoshc...@gmail.com wrote:
Hi,
From an external source I am getting data in the following format / encoding:
http://www.mydomain.com/app?message=%003%000%009%009%003%004
how do I convert the message parameter into plain string
On Tue, Jan 24, 2012 at 6:07 PM, David Ekdahl li...@ruby-forum.com wrote:
Peter Vandenabeele wrote in post #1042328:
On Tue, Jan 24, 2012 at 5:40 PM, David Ekdahl li...@ruby-forum.com
wrote:
Hello,
The log says:
Mysql::Error - Can't connect to MySQL server on 'remote.host.local'
On 23 January 2012 22:44, Santosh c santoshc...@gmail.com wrote:
Hi,
From an external source I am getting data in the following format / encoding:
http://www.mydomain.com/app?message=%003%000%009%009%003%004
how do I convert the message parameter into plain string 309934? Thanks.
If you use
Hello, I'm using instantrails 2 to develop RubyOnRails projects on
windows and need to update my ruby version to 1.8.7 (I'm still using
1.8.6). I downloaded ruby 1.8.7 here
http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7.zip
and unzipped files in the ruby folder of instantrails but when I check
On Tue, Jan 24, 2012 at 12:33 PM, CiriusMex cirius...@gmail.com wrote:
Hello, I'm using instantrails 2 to develop RubyOnRails projects on
windows and need to update my ruby version to 1.8.7 (I'm still using
1.8.6). I downloaded ruby 1.8.7 here
Peter Vandenabeele wrote in post #1042334:
On Tue, Jan 24, 2012 at 6:07 PM, David Ekdahl li...@ruby-forum.com
wrote:
But why... When I run mysql -h remote.host.local -u user -p form the
= {development={adapter=postgresql, encoding=unicode,
What does it do?
$ irb
1.9.3p0 :001 require
On 24 January 2012 17:19, Peter Vandenabeele pe...@vandenabeele.com wrote:
On Tue, Jan 24, 2012 at 6:07 PM, David Ekdahl li...@ruby-forum.com wrote:
Peter Vandenabeele wrote in post #1042328:
On Tue, Jan 24, 2012 at 5:40 PM, David Ekdahl li...@ruby-forum.com
wrote:
Hello,
The log
On Jan 24, 2012, at 12:33 PM, CiriusMex wrote:
Hello, I'm using instantrails 2 to develop RubyOnRails projects on
windows and need to update my ruby version to 1.8.7 (I'm still using
1.8.6). I downloaded ruby 1.8.7 here
http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7.zip
and unzipped
Colin Law wrote in post #1042340:
On 24 January 2012 17:19, Peter Vandenabeele pe...@vandenabeele.com
wrote:
(13):
1.9.3p0 :001 require 'yaml';
Do you want me to just copy and paste the code inside my database.yml
It parses the database.yml file (which is obviously a YAML file). If you
Ok, since I do not know your controller code, this is pretty much a
shot in the blind, but here it is anyways :
Looking at the passwords/edit.html.erb being rendered at the end I am
guessing that there was some error or exception while changing the
password which was caught and the user was asked
I have the exact same problem, did you solve it?
what did you do??
--
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@googlegroups.com.
To
On Jan 24, 11:38 am, Walter Lee Davis wa...@wdstudio.com wrote:
On Jan 24, 2012, at 12:33 PM, CiriusMex wrote:
Hello, I'm using instantrails 2 to develop RubyOnRails projects on
windows and need to update my ruby version to 1.8.7 (I'm still using
1.8.6). I downloaded ruby 1.8.7
On Tue, Jan 24, 2012 at 6:52 PM, David Ekdahl li...@ruby-forum.com wrote:
Colin Law wrote in post #1042340:
On 24 January 2012 17:19, Peter Vandenabeele pe...@vandenabeele.com
wrote:
(13):
1.9.3p0 :001 require 'yaml';
Do you want me to just copy and paste the code inside my
On 24 January 2012 21:18, Peter Vandenabeele pe...@vandenabeele.com wrote:
On Tue, Jan 24, 2012 at 6:52 PM, David Ekdahl li...@ruby-forum.com wrote:
Colin Law wrote in post #1042340:
On 24 January 2012 17:19, Peter Vandenabeele pe...@vandenabeele.com
wrote:
(13):
1.9.3p0 :001 require
On Tue, Jan 24, 2012 at 10:32 PM, Colin Law clan...@googlemail.com wrote:
On 24 January 2012 21:18, Peter Vandenabeele pe...@vandenabeele.com
wrote:
...
Warning, it that command succeeds, you may be connected directly to your
production database, be careful.
...
David: Before doing
I was trying to avoid this approach as I expected it would be a little
complex, but your code shows that it is pretty straightforward. Thanks for
taking the time to write it out.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To view
Thanks for the idea. Unfortunately the :back :back process that I need to
do is back to a previous model in a different view, so pagination won't do
it for me.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To view this discussion on
Cool! Had not thought of this approach at all. I have very weak JS
skills, but I'll look into this.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To view this discussion on the web visit
Hello.
'm banging with a difficult problem I think.
I have a form like this:
- @company.categorizations.each do |categorization|
%tr
= f.semantic_fields_for :categorizations, categorization do |cat|
%td
%b= categorization.category.name
%td
Excellent advice... I'm a fan of your idea of having nested resources
as I had a fear of massive versioning tables with my original
approach. I'll give this a G-O.
On Jan 25, 1:18 am, Walter Lee Davis wa...@wdstudio.com wrote:
On Jan 24, 2012, at 1:31 AM, Vladiim wrote:
I'm creating a booking
On Tue, Jan 24, 2012 at 18:14, Peter Vandenabeele
pe...@vandenabeele.com wrote:
I think you could get more help/feedback if you leave a little context
quoted above, showing to what you are actually responding.
Just don't dare top-post, without nomex on. ;-)
-Dave
--
Dave Aronson, Available
Using Rails 3.2
Finally got my app to run on Heroku --cedar
I am using Blueprint so had to add
config.assets.precompile += %w( blueprint/screen.css blueprint/print.css
blueprint/ie.css) to environments/production to get a complete asset
precompile of vendor assets.
Used RAILS_ENV=production
It seems that RAILS_ENV=production bundle exec rake assets:precompile
compiles the assets production and since you are in development.. try to
run bundle exec rake assets:precompile without the environment to see if it
works.
2012/1/24 Dave Castellano li...@ruby-forum.com
Using Rails 3.2
No, that didn't help. I would assume rails uses the uncompiled files in
development env as those are the files that are edited in development
(assets/stylesheets/***) The compiled files are in the public folder
and not in an easily editable format. Maybe there is a cache I don't
know
Hi everyone, I'd like an opinion.
Does Rails scales for something like an e-commerce that makes 5000 sells
each day?
An e-commerce like ebay, for example.
Thanks in advance.
Ps.: I wanna convince my team that Rails is the way to go instead of PHP
with Symphony.
--
You received this message
On 01/24/2012 10:33 AM, CiriusMex wrote:
Hello, I'm using instantrails 2 to develop RubyOnRails projects on
windows and need to update my ruby version to 1.8.7 (I'm still using
1.8.6). I downloaded ruby 1.8.7 here
http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7.zip
and unzipped files in the
Rodrigo Ruiz wrote in post #1042405:
Does Rails scales for something like an e-commerce that makes 5000 sells
each day?
An e-commerce like ebay, for example.
So how does 5000 sells a day equate to a high traffic web site? How
about instead giving us a figure measured in the units the rest of
On 01/24/2012 10:05 PM, Norm Scherer wrote:
On 01/24/2012 10:33 AM, CiriusMex wrote:
Hello, I'm using instantrails 2 to develop RubyOnRails projects on
windows and need to update my ruby version to 1.8.7 (I'm still using
1.8.6). I downloaded ruby 1.8.7 here
How to call a controller from the rake file, Just i have tried to create
a controller object in rake, and call the method, but i didn't get that...
also how to link the helper class with the rake?
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails:
I'm trying to write a helper method similar to attr_accessible but
instead it will be used to whitelist which attributes are available for
serialization (attr_serializable). My first attempt at this was to
override serialized_hash and modify the :only option to include nothing
but serializable
Hi all,
I have a requirement were the following is to be done:
A user can belong to single chapter. Chapter has many channels.. So a
particular user can only be a part of a single chapter. How can i do
this validation in rails 3?
--
Posted via http://www.ruby-forum.com/.
--
You received this
Hi,
I'm downloading many files at a time, i wants to show the list of
files downloading in pop up. For ex: Downloading file 1 of 12 etc.
Anyone please help this, how to do this in rails 2.3.14.
Is the filemanager gem is useful for this. Awaiting for replies.
Thanks,
Deepika
--
Posted via
69 matches
Mail list logo