Anyone? ideas? i really am not able to figure this out.. nothing in
the API docs, google is not being its dependable self..
On Jun 27, 11:58 am, Ram yourstruly.vi...@gmail.com wrote:
Hi all,
I have two models Order and Transaction witht he following
relationship.
Order
has_one
Hi!
I have an issue that I think right now is like a rails cliche:
I'm developing a Network, with a main site and secondary sites. The idea
is that when you login in the main site, automatically you are login in
the secondary sites (and viceversa). The obvious solution (one part at
least) is
Whats interesting is that if there is no transaction for a particular
@order, then @order.destroy fails. But if there IS a transaction for
the given @order, then @order.destroy returns true but the order is
still there. It doesnt get deleted!! WEIRD!
And the logs carry the same queries.. no
Matt Jones wrote:
Do you happen to have an RC version frozen in vendor/rails? That's my
next guess...
Nope, but it's an application that has been upgraded from an older
version, so there might be some leftover somewhere, that is causing
this. I'll try to see if I can replicate the issue in a
Hey all,
I have a model User. A new users can signup at /users/new
I have a few lines of validations in my model. And if the registration
attempt fails due to validations reasons, it displays page, but the css
styles are not applied and it shows only the plain html.
Any suggestions?
Thx
--
Hi,
I'm using the new nested forms functionality and I having problems with
new created elements.
I have an invoice with lines. I would like to be able to create a new
invoice, in the same form insert new lines dinamically and saving the
invoice and the lines when everything is validated, not
Hi!
I have a little problem in a HABTM relationship.
I have this schema:
expedients --- expedients_documents --- documents
expedients(HABTM)docuements - documetns(HABTM)expedients
From the expedients view, I add a new document, passing as parameter
the expedients ids (maybe more than
Sorry should have said I access the forum via browser on
groups.google.com
Tonypm
--~--~-~--~~~---~--~~
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
Maybe my post isn't understandable ?
I have to make this software and I'm trying to find a solution long
time ago but unfortunately my search didn't give me any answer :S
adrien
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
I register a user in with an Ajax request
after saving a user, and setting the flash[:notice] = welcome
message, I perform the rendering
format.js {
render :update do |page|
page window.parent.Shadowbox.close();
#page.reload (?)
Is there any method to scan ip range in ruby on rails !
--
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
Dear all
Why the following error appear in development.log?
Processing ApplicationController#index (for 160.1.42.69 at 2009-06-29
19:09:05) [GET]
ActionController::RoutingError (No route matches
/stylesheets/images/img02.gif with {:method=:get}):
Dear all
After I search something, it can successfully display the result in the
browser. However, I view the Page source and found that the HTML code
between the 'event_list' div tag is not updated , the content is same as
before searchingIt is so strange. This problem happen in both IE and
Hi,
I have written a code for drawing a graph with the scruffy gem, but the
exact value of the bars are not visible.
I have tries doing that with the renderer method and the standard.rb
file.
Neither I can do that with the layers.rb file.
Please help.
--
Posted via http://www.ruby-forum.com/.
Are you trying to secure your Rails app via IP?
You can use request headers in Rails to compare. You would have to use
regex to compare for specific range. But it would be wiser to keep
this out of Rails and do in Apache mod_proxy or whatever else you are
proxy-ing with.
H
On Jun 29, 6:37 am,
On Jun 29, 7:29 am, Valentino Lun rails-mailing-l...@andreas-s.net
wrote:
Dear all
After I search something, it can successfully display the result in the
browser. However, I view the Page source and found that the HTML code
between the 'event_list' div tag is not updated , the content is
Hello,
Please read discussion on this problem on Aurigma managed forums:
http://forums.aurigma.com/yaf_postst3688_Aurigma-image-uploaderin-rails.aspx
On 26 июн, 19:54, Pravin Mhatre rails-mailing-l...@andreas-s.net
wrote:
Here is my controller code
Also,
protect_from_forgery :except =
Hi..
I don't think it's possible, ImageScience is very simple, it can't be
used to composite images.
AFAIK, right now, we don't have any choice beside RMagick for this kind of jobs.
On Mon, Jun 29, 2009 at 7:40 AM, nextpulserob...@nextpulse.com wrote:
Hi - not sure if this is the place to
Hello,
we have a problem in a CMS project that we believe is basic for RoR
developement and could concern others as well - or have already:
RoR implements the 'Single Table Inheritance' (STI) Pattern:
http://www.martinfowler.com/eaaCatalog/singleTableInheritance.html
.. through its
i need a system for sendig automatically bulk email to 300 users, when
my customer insert or update news.
I've tryng with simple actionmailer, but it sending until 40 users.
i read this:
http://www.myowndb.com/blog/?p=20
but i ask myself if the method used is apt to rails 2.3.2 or exist a
Use flash.now instead of plain flash when you do the assignment.
-- from the API docs
now()
Sets a flash that will not be available to the next action, only to
the current.
flash.now[:message] = Hello current action
This method enables you to use the flash as a central messaging system
Can you configure your SMTP server to be in queue mode as mentioned in
the comment to that article?
On Jun 29, 5:15 pm, Aldo Italo rails-mailing-l...@andreas-s.net
wrote:
i need a system for sendig automatically bulk email to 300 users, when
my customer insert or update news.
I've tryng with
Thanks ,
Basically i want to scan my network with ROR application is there any
way or any API avail for this?
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on
Check for bad database queries that take a long time to execute and
load more junk than you need.
On Jun 27, 4:35 am, Developer In London ebilliona...@gmail.com
wrote:
I seem to be getting a problem where my rails application seems to be
leaking memory when I load a page. It starts off at
use an absolute path for the image file. I think you can use /images/
img02.gif.
On Jun 29, 4:19 pm, Valentino Lun rails-mailing-l...@andreas-s.net
wrote:
Dear all
Why the following error appear in development.log?
Processing ApplicationController#index (for 160.1.42.69 at 2009-06-29
Dear Eric,
Thxs for the suggestion - I have followed up on it - Bluehost support
(as I expected) are not very knowledgeable in this area - not sure how
long they will take to respond - will also be trying Bluehost forums
but most of the info appears to be stale without resolutions.
All other
Valentino Lun wrote:
background: #4E8CFF url(images/img02.gif) no-repeat;
i think you correct with url(../images/img02.gif)
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
On Jun 29, 12:01 am, HeChian cfc...@gmail.com wrote:
Hi all.
My host install ruby in /usr/local/ but install rubygems in /home/user/
ruby/.
so, when I startup my rails project it always return error to me said
that it couldn't find any rubygems lib.
anybody knows how to solve it?
Mukund wrote:
Can you configure your SMTP server to be in queue mode as mentioned in
the comment to that article?
not, I have not understood where and how this must be configured.
thanks
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You
Thanks for your help I did it, it doesn't solve this issue
the notice is actually correctly set but the browser needs a manual
refresh to display it
a very small issue but taking me hours to solve ...
On 29 juin, 14:29, Mukund marut...@yahoo.com wrote:
Use flash.now instead of plain flash
Hi,
I would like to know if the last best solution is which is described
here http://zilkey.com/2008/4/5/complex-forms-with-correct-ids or is
there any better/different solution for this problem.
Thanks in advance.
--
Posted via http://www.ruby-forum.com/.
I'm having trouble with Rails Integrations tests on Rails 2.3 not
setting the query string on post actions. I'm testing a rails metal
so when the env[QUERY_STRING] variable isn't set, in the test, the
metal doesn't get any of the query string params. For some reason
this is only set on a GET
Nothing that stands out here (to me), would you mind posting your routes file.
Cheers,
Nicholas
On Fri, Jun 26, 2009 at 1:34 PM, Herman
Müllerrails-mailing-l...@andreas-s.net wrote:
Hi Nicholas,
thanks for your answer.
Unfortunately i have no functional test, but here is my
If you install the firebug extension for firefox there is an option to
view the generated source.
Cheers,
Nicholas
On Jun 29, 8:14 am, Frederick Cheung frederick.che...@gmail.com
wrote:
On Jun 29, 7:29 am, Valentino Lun rails-mailing-l...@andreas-s.net
wrote: Dear all
After I search
Hi There,
I have installed ruby on rails on a windows 7 box as mentioned on the
official ror manual and it works perfectly for some times. but when I
refresh web browser page few times I got this error and now nothing is
working on my pc.
here is the error I get when i try to start the server
On Jun 29, 10:26 am, Randika Rathugama randika.rathug...@gmail.com
wrote:
Hi There,
I have installed ruby on rails on a windows 7 box as mentioned on the
official ror manual and it works perfectly for some times. but when I
refresh web browser page few times I got this error and now nothing
Hi fred,
That was so quick. Thanks you. unfortunately I figured it out (Not the
Solution but the error) and just deleted the original mail post.
And yes you are so correct something is wrong with my routes.rb file.
On Jun 29, 7:27 pm, Frederick Cheung frederick.che...@gmail.com
wrote:
On Jun
Solved.I write a comment for newbies as me...sorry for the english.
The problem raises from the generation of the join table.This table,
cannot must have a id attribute as a primary key, instead of this,
must have a primary key composed by the two foreign keys.In Rails,
this means a :id = false
Hey,
I just upgraded from searchlogic-1.6.6 to searchlogic-2.1.1, and now I'm
getting some new errors.
Previously, in the model I could have something like this:
def self.search(criteria, options={})
criteria ||= {}
search = self.new_search
blah blah blah
end
and it would work.
Assuming that you mean they install gems (the packages, not the
package *manager* rubygems) in /home/user/gems, take a look at this
article on setting GEM_HOME:
http://helpdesk.bluehost.com/index.php/kb/article/000365
--Matt Jones
On Jun 29, 12:01 am, HeChian cfc...@gmail.com wrote:
Hi all.
You might as well skip the timestamps as well, as the HABTM table
with extra fields functionality disappeared in 2.3.
--Matt Jones
On Jun 29, 10:39 am, Jose Ernesto Suarez suarez.erne...@gmail.com
wrote:
Solved.I write a comment for newbies as me...sorry for the english.
The problem raises
I've just migrated my system over to a new macbook.
I've been having a nightmare today trying to get the site I'm working on
to work...
All gems are in place, MySQL etc.
However - I am stuck on this error form Mongrel:
HTTP parse error, malformed request (127.0.0.1):
#Mongrel::HttpParserError:
Mongrel doesn't support SSL, you'll have to disable this on dev mode.
-
Maurício Linhares
http://codeshooter.wordpress.com/ | http://twitter.com/mauriciojr
On Mon, Jun 29, 2009 at 12:32 PM, Adam
Wilsonrails-mailing-l...@andreas-s.net wrote:
I've just migrated my system over to a new macbook.
The :orthologs association is the problem - Rails doesn't support
nesting :through associations. I recall there being a plugin around
someplace to do it, so you may want to look into that.
Depending on what you need, a simple instance method may work as well.
For example (on Gene):
def
One thing - if you're only ever going to be interested in the date,
I'd recommend changing the compiled_on field to a date, rather than a
datetime. That will eliminate the off by 1 second thing you're
seeing.
--Matt Jones
On Jun 28, 9:02 am, Älphä Blüë rails-mailing-l...@andreas-s.net
wrote:
On Jun 27, 2009, at 9:08 PM, Jason Burgett wrote:
Ok, the real calculation I'm trying to do is between 12:00am and
4:00am
cuurent_time = Time.now
(current_time.hour 0) and (current_time.hour = 4)
If the current time is 00:17:24...
Duh, just figure out my error. I was doing that but
Maurício Linhares wrote:
Mongrel doesn't support SSL, you'll have to disable this on dev mode.
-
Maur�cio Linhares
http://codeshooter.wordpress.com/ | http://twitter.com/mauriciojr
On Mon, Jun 29, 2009 at 12:32 PM, Adam
Thanks
We had this all working before on my old macbook, I cannot
Richard Schneeman wrote:
Looks like this question is more of an html/presentation question, you
may get more help on a different forum.
Yup.
If you're looking for an
application like google calender, I would recommend javascript, its a
hair difficult to debug, but it will render the
Hello
The 2009 Lone Star Ruby Conference is just around the corner
and conference tickets are moving faster than small-town gossip.
This year you can choose from eleven training classes that are
as fine as dollar cotton. LSRC training is covering some of the
best and newest technologies in
The plural model name comes from the Agile Development book. They have
an example--categories_products, linking categories to products--which
they turn into a model. Should it be renamed category_product? Or is
categories_product correct? I'm a bit confused about this, so thanks
for bringing it
I have a model for which I have provided a customer finder method,
'find_one_by_date(params)', where params is a hash. This method
always returns one or no record from the DB.
I would like to define an association, has_one, from another model to
this one, passing the params hash and using the
I'll look at the rest of your example later, but...
John Woods wrote:
The plural model name comes from the Agile Development book. They have
an example--categories_products, linking categories to products--which
they turn into a model. Should it be renamed category_product?
[...]
If I had to
I'm sorry, I didn't post that to bump my post. It's just because I
know my English level is very low and I don't know if my post is
understandable, if not I can ask friend to help me for explain what I
want. In that way, you could say me and i will do, else I wait an
answer and don't bump my post
I have a question...right now I work at a place where we have
implemented an automated test framework in Ruby-Watir-RSpec. The
application is a Java-based web application. My question is...is
there any value to setting up a Rails app as a test environment and
then run tests against our Java web
Hi joe
I am facing pacing pagination problem with searchlogic logic gem. Do you
have some related problem
On Mon, Jun 29, 2009 at 8:25 PM, Joe Peck
rails-mailing-l...@andreas-s.netwrote:
Hey,
I just upgraded from searchlogic-1.6.6 to searchlogic-2.1.1, and now I'm
getting some new
Thought people would find this blog useful.
Since December, Rails has undergone a fairly significant internal
refactoring in quite a number of areas. Yehuda Katz has honed a
process for diving into a new area of the codebase and emerging some
time later with a much improved area that does
Adrien Nom wrote:
I'm sorry, I didn't post that to bump my post. It's just because I
know my English level is very low and I don't know if my post is
understandable, if not I can ask friend to help me for explain what I
want.
Then I'm sorry for having responded in the way I did. Yes, it
Jim Knowlton wrote:
I have a question...right now I work at a place where we have
implemented an automated test framework in Ruby-Watir-RSpec. The
application is a Java-based web application. My question is...is
there any value to setting up a Rails app as a test environment and
then run
senthil raja wrote:
Hi joe
I am facing pacing pagination problem with searchlogic logic gem. Do you
have some related problem
On Mon, Jun 29, 2009 at 8:25 PM, Joe Peck
The new SearchLogic gem doesn't do pagination anymore. They recommend
using will_paginate, which works pretty well
Rails will not help you test an other app
2009/6/29, Jim Knowlton jknowlton...@gmail.com:
I have a question...right now I work at a place where we have
implemented an automated test framework in Ruby-Watir-RSpec. The
application is a Java-based web application. My question is...is
there
I am trying to figure out a (better) way to do the following:
some_string = Display a widget here - widget1234/widget
new_string = replace_widgets_in_string(some_string)
p new_string = #Display a widget here - Widget 1234 is blue
the method replace_widgets_in_string will need to pick out the
So the plugin appears to work. FYI, it's here:
git://github.com/ianwhite/nested_has_many_through.git
Unfortunately, I'm still having trouble setting up the condition. I've
renamed a few things and added appropriate associations:
class Gene ActiveRecord::Base
belongs_to :species
has_many
On Jun 29, 2009, at 11:33 AM, Yanni Mac wrote:
I am trying to figure out a (better) way to do the following:
some_string = Display a widget here - widget1234/widget
new_string = replace_widgets_in_string(some_string)
p new_string = #Display a widget here - Widget 1234 is blue
the method
Ari: your problem is in lib/tasks/localization.rake. You require
config/environment, which loads the initializer and causes the error.
The gems tasks never even get a chance to run.
Troels - I'd recommend that you look for the same kind of thing in
your Rakefiles.
--Matt Jones
On Jun 28, 6:37
Hi all,
I am stumped with the following problem:
* A module, which is mixed into a controller, defines two methods, 'a'
and 'b'
* 'a' calls 'b'
* 'b' might be overriden in the controller
* when 'a' is called as a 'before_filter', it always calls the version
of 'b' defined in the mixin module,
Brian Hartin wrote:
Never mind. I had another problem which mislead me; the example I gave
works perfectly once I correct the other problem.
Hi all,
I am stumped with the following problem:
* A module, which is mixed into a controller, defines two methods, 'a'
and 'b'
* 'a' calls 'b'
found a solution but I have to understand why it runs...
the issue was not the display of the flash notice in the home page,
but the redirection to the home page from within the rjs file
in my rjs file I need to write
page window.parent.Shadowbox.close();
page
I have a model for users and another model for linenumbers and I have
some code that looks like:
@user.linenumbers.each do |line|
end
and it loops through a user and their line numbers. What if I want to
order this list, is there a way to do that?
I know I could just put these linenumbers
Hi, i wan't to permit users to send their own content, text, html, and
stuff like that. It should also be permit them to send their own design,
using div, span, internal style attributes and so on. Obviously i'd like
to protect everything forbidding javascript, but permitting object and
embedded
Engine Yard's Ezra Zygmuntowicz offers five tips on how to scale Ruby
on Rails applications, including caching techniques to keep the load
off application servers and databases. http://bit.ly/tgkQA
--~--~-~--~~~---~--~~
You received this message because you are
On Jun 29, 5:31 pm, Shandy Nantz rails-mailing-l...@andreas-s.net
wrote:
I have a model for users and another model for linenumbers and I have
some code that looks like:
@user.linenumbers.each do |line|
end
and it loops through a user and their line numbers. What if I want to
order
On Jun 29, 2009, at 5:31 PM, Shandy Nantz wrote:
I have a model for users and another model for linenumbers and I have
some code that looks like:
@user.linenumbers.each do |line|
end
and it loops through a user and their line numbers. What if I want to
order this list, is there a way to
Matt, good call there mate.
I created some constants for each week start and end:
WEEK_ONE_START = 2009-06-21
WEEK_ONE_END = 2009-06-27
And then defined that in a per search scope:
named_scope :compiled_week_one, lambda { { :conditions = ['compiled_on
? and compiled_on ?', WEEK_TWO_START,
Älphä Blüë wrote:
And then defined that in a per search scope:
named_scope :compiled_week_one, lambda { { :conditions = ['compiled_on
? and compiled_on ?', WEEK_TWO_START, WEEK_TWO_END] } }
Actually reads WEEK_ONE_START and WEEK_ONE_END..
--
Posted via http://www.ruby-forum.com/.
Ok, so, ive got a link and a rjs file, is there a way i can pass a
variable to the rjs by the remote_to link
example...
%= link_to_remote All, :url = 'all' %
%= link_to_remote Messages, :url = 'messages' %
%= link_to_remote Requests, :url = 'requests' %
%=
Matt: thank you so much for finding that. I have removed it and the
problem goes away as you say. Can I recommend some improvements to
Rails to help others in this predicament:
* rake gems:install should not try to load all the rake tasks since it
has a very specific job to do and should not be
Subject: [ANN] ri_cal 0.7.0 Released
ri_cal version 0.7.0 has been released!
* http://ri-cal.rubyforge.org/
* by Rick DeNatale
A new Ruby implementation of RFC2445 iCalendar.
The existing Ruby iCalendar libraries (e.g. icalendar, vpim) provide
for parsing and generating icalendar files,
but
We've built a drop in replacement for ActiveRecord called
SimpleRecord:
http://code.google.com/p/simple-record/
Just make your models extend SimpleRecord::Base instead of
ActiveRecord::Base and you're good to go.
Travis
On May 22, 10:12 am, kretch yaronkretch...@gmail.com wrote:
SoSimpleDBis
Hi,
I have a problem using rspec with my rspec tests with my application.
I used authlogic to create my athentication system, following the
video on railscast. It works fine with cucumber, but I always have a
problem with rspec :
ActiveRecord::StatementInvalid in 'ApplUsersController new action
Greetings Ladies and Gents,
I am learning rails and am wondering about a best practice? Currently
I am trying to save specific tasks for a project. So tasks has a
belongs_to :project and project does has_many :tasks. Well when
creating a new task I need to store to project_id in the tasks
Hi,
Trying to get my head around how Rails works. I am trying to generate
an xml representation of a model's list view. It works well when I try
to simply use
format.xml { render :xml=@models }
But I need to change the name of the elements slightly. Tried to use
an action.rxml template using
Hi folks,
If you haven't already heard, my book Ruby Best Practices is now
available in print!
The whole manuscript will be made freely available under a creative
commons license in March 2010, but now is the time to buy a copy if
you want to support my efforts as well as O'Reilly for
On Mon, Jun 29, 2009 at 4:06 PM, Yoann-Z yoann.zim...@gmail.com wrote:
Hi,
I have a problem using rspec with my rspec tests with my application.
I used authlogic to create my athentication system, following the
video on railscast. It works fine with cucumber, but I always have a
problem
83 matches
Mail list logo