We are using Nanite, amongst other things to generate complex mails
and send them off. Works brilliantly and we don't even load the Rails
environment into the nanite workers, making every worker a nicely
contained, very memory-friendly entity. Nanite is very scalable.
On 12 Dec 2010, at
Hi,
I'm following a tutorial which creates a rails project using the
scaffolding generator (in Rails 2.3.8). One of the exercises at the
end of this tutorial is to put the form used in the scaffolding's new
and update views into a partial.
So, I created a file _form.html.erb in the views folder
On Dec 13, 10:45 am, Jim Burgess li...@ruby-forum.com wrote:
When I run rake routes I see:
PUT /flights/:id(.:format) {:controller=flights, :action=update}
What am I missing?
Can anyone point me in the right direction?
Thanks very much in advance.
because a route isn't just a path, it's
Hi,
While i'm trying to execute the following command, i'm getting command
not found error.
juggernaut -g juggernaut.yml (This is used to configure the gem.)
My Rails Version is 2.3.5
Juggernaut version is 2.0.0
Please help me. Thanks in advance.
Thanks,
Priya
--
Posted via
Hi Guys,
Actually there is some attributes common to both the hashes, using that
common attribute, i'm displaying the results. It works for me. Thank you
very much for your help.
Thanks Regards,
Priya
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are
Cheers for the explanation, Fred.
Following your advice I passed the appropriate HTTP method to the form
in the partial and now everything works as it should.
In case it helps anyone else, I now have:
new.html.erb:
%= render :partial = form, :locals = {:url = {:action =
create}, :method = :post}
On Dec 13, 6:51 am, Priya D. li...@ruby-forum.com wrote:
Hi,
While i'm trying to execute the following command, i'm getting command
not found error.
juggernaut -g juggernaut.yml (This is used to configure the gem.)
I think we might be able to help if you could provide more information
about
Dear Group members,
Greetings!
I would like to take this opportunity to introduce myself. My name is
Pankaj Bhatia working as an Asst. Business Development Manager with
DRC Systems.
DRC Systems is a web development company based in India with the total
strength of 50+ Developers. We have a team
On Dec 12, 11:49 pm, Marnen Laibow-Koser li...@ruby-forum.com wrote:
Mike B wrote in post #967999:
Thanks for the ideas. I might have to go that route if I can't get
this figured out. Either that or skip fixtures and have my test cases
completely load the database from scratch.
Ideally
David Kahn wrote in post #967876:
I am trying to do the following in a Test/Unit integration test using
Capybara. Very basic Rails 3 app, Ruby 1.9.2 just with the pg and
capybara
gems, thats it.
[...]
Is there any particular reason that you are torturing yourself this way
instead of using
David Kahn wrote in post #967963:
I have this listed in the Toto Issues list on Git and know that it is
affecting one other person and so far no ideas... just want to throw it
out
here if anyone else has had the issue or better yet has a fix:
I have a pretty stock instance of Toto. Locally I
Jim Burgess wrote in post #968051:
Cheers for the explanation, Fred.
Following your advice I passed the appropriate HTTP method to the form
in the partial and now everything works as it should.
In case it helps anyone else, I now have:
new.html.erb:
%= render :partial = form, :locals =
But you missed Fred's point entirely
Oops, it appears I did.
So all you need in both new.html.erb and edit.html.erb is
render :partial = 'form'
and in _form.html.erb, just
form_for @flight
Yup, that works embarrassingly well!
Thanks a lot for pointing that out.
--
Posted via
On Mon, Dec 13, 2010 at 9:26 AM, Marnen Laibow-Koser
li...@ruby-forum.comwrote:
David Kahn wrote in post #967963:
I have this listed in the Toto Issues list on Git and know that it is
affecting one other person and so far no ideas... just want to throw it
out
here if anyone else has had
On 13 December 2010 15:22, Mike B mbern...@gmail.com wrote:
[...]
Is there anything on the horizon (Rails 3+) that will fix or replace
fixtures in Rails?
I think most people use factory girl or machinist which are both
available for Rails 3.
Colin
--
You received this message because you
https://github.com/brianmario/mysql2
On Dec 12, 7:27 am, Jatin kumar jatinkumar.n...@gmail.com wrote:
Still, could someone list the difference between the old mysql gem and new
mysql2 gem??
Why use the new one??
On Sat, Dec 11, 2010 at 1:44 PM, Paul Bergstrom li...@ruby-forum.comwrote:
A
giorgio wrote in post #967970:
I want to merge several identical databases together.
There is obviously a problem in that the primary keys (id) will change
when imported and thus any foreign keys that refer to that id will
have to be changed as well.
This is all doable but I wonder if there
Pankaj @ drc Systems wrote in post #968060:
Dear Group members,
Greetings!
I would like to take this opportunity to introduce myself. My name is
Pankaj Bhatia working as an Asst. Business Development Manager with
DRC Systems.
DRC Systems is a web development company based in India with
Kishoj B. wrote in post #967944:
I am trying to consume the linked data from linked data source using
SPARQL query in rails. Where can i find the tutorials for this
purpose??
What do you mean by linked data? What have you tried so far?
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
Well ... issue resolved.
My ISP did not have ImageMagick installed correctly on his server.
Amazingly, I was doing everything correctly.
--
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
Been having some trouble with brew and getting all things to work. I had
a working environment with macports. But when updating to Rails 3 I
decided to try homebrew. Will brew Imagemagick install all dependencies?
E g I think I miss Freetype and I can't find that as brew.
Btw, what's your
On Dec 12, 2010, at 4:59 PM, Rodrigo Mendonça wrote:
Great!!
when user_id is null (and can be null in some cases)
you can do this
%post.each do |p|%
%=p.user.name unless p.user.nil?%
%end
other way is
%=p.user.name unless p.user.empty?%
Or, you can push that into the model and avoid
Paul Bergstrom wrote in post #968090:
Been having some trouble with brew and getting all things to work. I had
a working environment with macports. But when updating to Rails 3 I
decided to try homebrew. Will brew Imagemagick install all dependencies?
E g I think I miss Freetype and I can't
I have two forms that people need to fill out, an Incident form and a
Timesheet form. I want the Timesheet form to appear right after a user
submits the Incident form.
This is my code for the Incident controller;
---
if @incident.save
format.html
Finne Jager wrote in post #968107:
I have two forms that people need to fill out, an Incident form and a
Timesheet form. I want the Timesheet form to appear right after a user
submits the Incident form.
This is my code for the Incident controller;
Marnen Laibow-Koser wrote in post #968112:
Bizarre. new_*_path doesn't normally take an argument (except for an
optional format string, which is why you're getting the .16 below).
Is there another way to pass the incident object to the New Timesheet
method? The new Timesheet needs to know
Finne Jager wrote in post #968117:
Marnen Laibow-Koser wrote in post #968112:
Bizarre. new_*_path doesn't normally take an argument (except for an
optional format string, which is why you're getting the .16 below).
Is there another way to pass the incident object to the New Timesheet
Thank you, I appreciate your help so far, I feel like we're getting
there!
And Timesheet belongs_to :incident , I hope?
Correct.
See the routing documentation. Once you *do* nest them, you get the
routes you need for free.
If you don't want to nest them, other solutions are possible, but
Finne Jager wrote in post #968122:
Thank you, I appreciate your help so far, I've been struggling with this
for days now.
And Timesheet belongs_to :incident , I hope?
Correct.
See the routing documentation. Once you *do* nest them, you get the
routes you need for free.
If you don't
Finne Jager wrote in post #968122:
Thank you, I appreciate your help so far, I've been struggling with this
for days now.
And Timesheet belongs_to :incident , I hope?
Correct.
See the routing documentation. Once you *do* nest them, you get the
routes you need for free.
If you don't
Rob Biedenharn wrote in post #968091:
On Dec 12, 2010, at 4:59 PM, Rodrigo Mendona wrote:
other way is
%=p.user.name unless p.user.empty?%
Or, you can push that into the model and avoid the extra logic in the
view:
class Post
def user_name
self.user ? self.user.name : (none)
Magnus D. li...@... writes:
I have downgraded to rails 3.0.1 and the problem has disappered. I
wonder why. :)
Seams like the adapter still doesn't support Arel 2.0.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this
Thanks for the replies Rob and Marnen - they are both very helpful to me
as a nube :)
--
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
On a side note, by changing the resources to nested instead of top
level, it broke my Index page which shows a list of Incidents and their
Timesheets. It pointed out this line of code:
td%= link_to 'View Time Sheet', timesheet_path(incident) %/td
On Dec 13, 2010, at 2:40 PM, Marnen Laibow-Koser wrote:
Rob Biedenharn wrote in post #968091:
On Dec 12, 2010, at 4:59 PM, Rodrigo Mendona wrote:
other way is
%=p.user.name unless p.user.empty?%
Or, you can push that into the model and avoid the extra logic in the
view:
class Post
def
On 13 December 2010 19:40, Marnen Laibow-Koser li...@ruby-forum.com wrote:
Rob Biedenharn wrote in post #968091:
On Dec 12, 2010, at 4:59 PM, Rodrigo Mendona wrote:
other way is
%=p.user.name unless p.user.empty?%
Or, you can push that into the model and avoid the extra logic in the
view:
Rob Biedenharn wrote in post #968133:
On Dec 13, 2010, at 2:40 PM, Marnen Laibow-Koser wrote:
class Post
chaining out of the view, but at the cost of a completely unnecessary
model method.
If a calculation were being performed to get this value, I'd agree
with
defining a method. But I
Finne Jager wrote in post #968131:
On a side note, by changing the resources to nested instead of top
level, it broke my Index page which shows a list of Incidents and their
Timesheets. It pointed out this line of code:
td%= link_to 'View Time Sheet',
Hi there.
I've got a very nasty problem with loading objects in Rails 2.3.5
I want to preload a set of objects with their associations. I'm trying
to do something like that:
@members = Guildsman.find(:all, :include = [{:roster_items =
:roster},{:gm_lineups = :lineup}], :conditions =
On Dec 13, 2010, at 3:08 PM, Finne Jager wrote:
On a side note, by changing the resources to nested instead of top
level, it broke my Index page which shows a list of Incidents and
their
Timesheets. It pointed out this line of code:
td%= link_to 'View Time
On 13 December 2010 16:30, Rob Biedenharn r...@agileconsultingllc.com wrote:
Or, you can push that into the model and avoid the extra logic in the view:
class Post
def user_name
self.user ? self.user.name : (none)
end
end
Instead of creating a new method to delegate from the
OK, you're really close. However, think about that route. It needs
an :incident_id and you haven't given one. For the create, you'll
want to do incident_timesheet_path(incident)
Thank you, I realized that as well and put the (incident) parameter:
td%= link_to 'View Time Sheet',
Hello,
I am running into a little issue. There is a considerable time
difference between the time that the console is giving me and the time
I am seeing in the created_at and updated_at column in the DB. The
difference is about 5 hours.
I don't think the problem is in the DB, but I could be
Hello,
Sorry if this is a double post. I think I did something wrong with the
original one.
I am running into a little problem with the fields mentioned above.
The difference between what Rails is saving in the DB and what I can
see in the console is of about 5 hours.
Am I missing something
I am still trying to wrap my head around FG... can someone explain me why I
am seemingly having to reload an object to have access to the correct
association value which I updated since creating the object with FG. Here is
an example (Factory below also):
@person = Factory(:person)
check timezone settings in your environment configs
--
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-t...@googlegroups.com.
To unsubscribe from
Marnen Laibow-Koser wrote in post #968101:
I much prefer Homebrew, though I had to play around a little with the
provided .profile commands to get Brewbygems to work properly. Homebrew
uses /usr/local properly, whereas Macports installs a lot of redundant
crap that duplicates what's already
Paul Bergstrom wrote in post #968159:
Marnen Laibow-Koser wrote in post #968101:
I much prefer Homebrew, though I had to play around a little with the
provided .profile commands to get Brewbygems to work properly. Homebrew
uses /usr/local properly, whereas Macports installs a lot of
Finne Jager wrote in post #968154:
OK, you're really close. However, think about that route. It needs
an :incident_id and you haven't given one. For the create, you'll
want to do incident_timesheet_path(incident)
Thank you, I realized that as well and put the (incident) parameter:
td%=
On 13 December 2010 21:54, pepe p...@betterrpg.com wrote:
Hello,
I am running into a little issue. There is a considerable time
difference between the time that the console is giving me and the time
I am seeing in the created_at and updated_at column in the DB. The
difference is about 5
David Kahn wrote in post #968158:
I am still trying to wrap my head around FG...
What's to wrap your head around? All it does is create an object with
some associations. If you're finding it confusing, you're most likely
overthinking it.
can someone explain me
why I
am seemingly having
I have an integer. I want to convert that into the name of a month.
With Ruby, I can just do this:
Date::MONTHNAMES[8]
and get August.
So, how do I localize the month name? When I try:
l(date.month_names[8])
I get an error:
I18n::ArgumentError: Object must be a Date, DateTime or Time
On Mon, Dec 13, 2010 at 4:51 PM, Marnen Laibow-Koser
li...@ruby-forum.comwrote:
David Kahn wrote in post #968158:
I am still trying to wrap my head around FG...
What's to wrap your head around? All it does is create an object with
some associations. If you're finding it confusing, you're
David Kahn wrote in post #968171:
On Mon, Dec 13, 2010 at 4:51 PM, Marnen Laibow-Koser
li...@ruby-forum.comwrote:
association value which I updated since creating the object with FG.
Here is
an example (Factory below also):
@person = Factory(:person)
@person.addresses.size.should ==
partydrone wrote in post #968169:
I have an integer. I want to convert that into the name of a month.
With Ruby, I can just do this:
Date::MONTHNAMES[8]
and get August.
So, how do I localize the month name? When I try:
l(date.month_names[8])
I get an error:
I18n::ArgumentError:
Marnen Laibow-Koser wrote in post #968163:
I have no idea. I don't use ImageMagick or Freetype. Why don't you
check the Homebrew website and Git repository?
I did. Why do you think I ask here for?
Listen Marnen, if you don't have answers or helpful suggestions for
people using this forum I
I thought I was doing ok, then started reading about rich joins and now
I'm all confused again :-/ (I'm a nube)
Would really appreciate someone quickly telling me the best associations
to use for the following scenario...
Models:
- User
- Topic (think of topics as 'categories')
- Comment
-
Paul Bergstrom wrote in post #968176:
Marnen Laibow-Koser wrote in post #968163:
I have no idea. I don't use ImageMagick or Freetype. Why don't you
check the Homebrew website and Git repository?
I did.
I can't read your mind. If you looked and didn't find the answer, it
would have been
Aston J. wrote in post #968178:
I thought I was doing ok, then started reading about rich joins and now
I'm all confused again :-/ (I'm a nube)
What's a rich join? Are you talking about join tables that contain
additional information?
Would really appreciate someone quickly telling me the
Hey all,
I'm following the Authenticating Your Users Recipe in Rails recipes,
which is a bit outdated I know.
It says run a migration:
def self.up
create_table :users do |t|
t.column username, :string
t.column password_salt, :string
t.column password_hash, :string
Thanks for the reply Marnen.
It would probably help if I give a bit more info about the site...
The site's aim is to list 'popular' topics. My users will be able to
create a topic (if it does not already exist) and leave a reason/comment
about why they like/dislike that topic. They can select
Please quote when replying.
Aston J. wrote in post #968185:
Thanks for the reply Marnen.
It would probably help if I give a bit more info about the site...
The site's aim is to list 'popular' topics. My users will be able to
create a topic (if it does not already exist) and leave a
John Merlino wrote in post #968183:
Hey all,
I'm following the Authenticating Your Users Recipe in Rails recipes,
which is a bit outdated I know.
It says run a migration:
def self.up
create_table :users do |t|
t.column username, :string
t.column password_salt, :string
On Dec 13, 2010, at 3:46 PM, John Merlino wrote:
Hey all,
I'm following the Authenticating Your Users Recipe in Rails recipes,
which is a bit outdated I know.
It says run a migration:
def self.up
create_table :users do |t|
t.column username, :string
t.column
Thanks for that idea Marnen,
I will take a look at Foreigner..
I think I would still have problems importing one database into the
other ...
Say I import Clients and all the ids get updated I would need to
update all the client_id values on say the adresses table but the
addresses table may
Thanks again Marnen.
I guess I'm worried about the associations and two foreign keys for the
comment model - as I've put it in my first post, are the has_many
:comments, belongs_to etc ok?
/Sorry for being such a nube - and thanks for your patience./
--
Posted via http://www.ruby-forum.com/.
On Dec 13, 2:51 pm, Marnen Laibow-Koser li...@ruby-forum.com wrote:
However, once you get FG working, I highly recommend using Faker to
generate the data.
Marnen, you consistently take Rails' hallmark opinionated software
up a couple of orders of magnitude ;-) so I'm curious about your
opinion
Again: please quote when replying!
Aston J. wrote in post #968194:
Thanks again Marnen.
I guess I'm worried about the associations and two foreign keys for the
comment model - as I've put it in my first post, are the has_many
:comments, belongs_to etc ok?
/Sorry for being such a nube - and
Stan Kaufman wrote in post #968201:
On Dec 13, 2:51pm, Marnen Laibow-Koser li...@ruby-forum.com wrote:
However, once you get FG working, I highly recommend using Faker to
generate the data.
Marnen, you consistently take Rails' hallmark opinionated software
up a couple of orders of magnitude
Marnen Laibow-Koser wrote in post #968199:
Again: please quote when replying!
Aston J. wrote in post #968194:
Thanks again Marnen.
I guess I'm worried about the associations and two foreign keys for the
comment model - as I've put it in my first post, are the has_many
:comments, belongs_to
giorgio wrote in post #968193:
Thanks for that idea Marnen,
I will take a look at Foreigner..
I think I would still have problems importing one database into the
other ...
Say I import Clients and all the ids get updated I would need to
update all the client_id values on say the adresses
Thanks, the time_zone value in environment.rb is the reason this is
happening.
On Dec 13, 5:05 pm, Anton Anykeyev li...@ruby-forum.com wrote:
check timezone settings in your environment configs
--
Posted viahttp://www.ruby-forum.com/.
--
You received this message because you are subscribed
The value in the db should be UTC, so may be correct, dependent on
where you are.
Thanks Colin,
I am in the US, EST. UTC is 5 hours ahead of me (rake time:zones:all).
For a multiple time zone application I understand that having UTC
would be the option. Is there a reason I am not aware of why
However, you're doing two things wrong here:
* Following an outdated book
* Trying to roll your own authentication library -- just go with
Authlogic or Devise.
This is for a personal project that doesn't require rapid development.
I'm just trying to build my own authentication system so I
Hi,
I am developing a j2me application to upload photos to a rail web
server.
I use multipart upload. My code work fine with PHP web server(when i
upload to php page).
But when i upload it to my real Rail Server, it show errors. I guess
it's because of i don't have Content-length header in my
is that gem is available in yours config /environment.rb or in yours
Gemfile( if rails3)
On Mon, Dec 13, 2010 at 5:21 PM, Priya D. li...@ruby-forum.com wrote:
Hi,
While i'm trying to execute the following command, i'm getting command
not found error.
juggernaut -g juggernaut.yml (This is
76 matches
Mail list logo