Re: [Rails] background jobs , comparison esp for sending emails

2010-12-13 Thread Peter De Berdt
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

[Rails] Unknown action in Rails App

2010-12-13 Thread Jim Burgess
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

[Rails] Re: Unknown action in Rails App

2010-12-13 Thread Frederick Cheung
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

[Rails] Juggernaut command not found

2010-12-13 Thread Priya D.
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

[Rails] Re: Re: Re: view data in single line

2010-12-13 Thread Priya D.
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

[Rails] Re: Unknown action in Rails App

2010-12-13 Thread Jim Burgess
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}

[Rails] Re: Juggernaut command not found

2010-12-13 Thread Tim Shaffer
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

[Rails] Hire Expert ROR Developer

2010-12-13 Thread Pankaj @ drc Systems
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

[Rails] Re: Fixtures and unit tests - no such file to load

2010-12-13 Thread Mike B
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

[Rails] Re: Test/Unit integration test w Capybara - how to manually set data in the test

2010-12-13 Thread Marnen Laibow-Koser
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

[Rails] Re: Toto blog date issue - production only, localhost fine

2010-12-13 Thread Marnen Laibow-Koser
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

[Rails] Re: Unknown action in Rails App

2010-12-13 Thread Marnen Laibow-Koser
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 =

[Rails] Re: Unknown action in Rails App

2010-12-13 Thread Jim Burgess
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

Re: [Rails] Re: Toto blog date issue - production only, localhost fine

2010-12-13 Thread David Kahn
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

Re: [Rails] Re: Fixtures and unit tests - no such file to load

2010-12-13 Thread Colin Law
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

[Rails] Re: Problem with mysql2

2010-12-13 Thread dsadaka
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

[Rails] Re: Merging Activerecord databases

2010-12-13 Thread Marnen Laibow-Koser
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

[Rails] Re: Hire Expert ROR Developer

2010-12-13 Thread Marnen Laibow-Koser
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

[Rails] Re: Consuming linked data on rails

2010-12-13 Thread Marnen Laibow-Koser
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

[Rails] Re: Running ImageMagick on Windows and Linux under Rails

2010-12-13 Thread Ralph Shnelvar
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

[Rails] Rails with macports or brew

2010-12-13 Thread Paul Bergstrom
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

Re: [Rails] Re: Do associations work both ways?

2010-12-13 Thread Rob Biedenharn
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

[Rails] Re: Rails with macports or brew

2010-12-13 Thread Marnen Laibow-Koser
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

[Rails] Redirect and passing params?

2010-12-13 Thread Finne Jager
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

[Rails] Re: Redirect and passing params?

2010-12-13 Thread Marnen Laibow-Koser
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;

[Rails] Re: Redirect and passing params?

2010-12-13 Thread Finne Jager
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

[Rails] Re: Redirect and passing params?

2010-12-13 Thread Marnen Laibow-Koser
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

[Rails] Re: Redirect and passing params?

2010-12-13 Thread Finne Jager
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

[Rails] Re: Redirect and passing params?

2010-12-13 Thread Marnen Laibow-Koser
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

[Rails] Re: Redirect and passing params?

2010-12-13 Thread Marnen Laibow-Koser
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

[Rails] Re: Re: Do associations work both ways?

2010-12-13 Thread Marnen Laibow-Koser
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)

[Rails] Re: SQLServer 2008 and Windows XP

2010-12-13 Thread Fabio Mazarotto
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

[Rails] Re: Do associations work both ways?

2010-12-13 Thread Aston J.
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

[Rails] Re: Redirect and passing params?

2010-12-13 Thread Finne Jager
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

Re: [Rails] Re: Re: Do associations work both ways?

2010-12-13 Thread Rob Biedenharn
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

Re: [Rails] Re: Re: Do associations work both ways?

2010-12-13 Thread Colin Law
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:

[Rails] Re: Re: Re: Do associations work both ways?

2010-12-13 Thread Marnen Laibow-Koser
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

[Rails] Re: Redirect and passing params?

2010-12-13 Thread Marnen Laibow-Koser
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',

[Rails] Load Including Associations and create_time_zone_conversion_attribute?

2010-12-13 Thread Anton Anykeyev
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 =

Re: [Rails] Re: Redirect and passing params?

2010-12-13 Thread Rob Biedenharn
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

Re: [Rails] Re: Do associations work both ways?

2010-12-13 Thread Michael Pavling
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

[Rails] Re: Re: Redirect and passing params?

2010-12-13 Thread Finne Jager
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',

[Rails] created_at, updated_at and MSSQL

2010-12-13 Thread pepe
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

[Rails] created_at, updated_at and MSSQL

2010-12-13 Thread pepe
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

[Rails] factory_girl question

2010-12-13 Thread David Kahn
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)

[Rails] Re: created_at, updated_at and MSSQL

2010-12-13 Thread Anton Anykeyev
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

[Rails] Re: Rails with macports or brew

2010-12-13 Thread Paul Bergstrom
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

[Rails] Re: Rails with macports or brew

2010-12-13 Thread Marnen Laibow-Koser
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

[Rails] Re: Re: Redirect and passing params?

2010-12-13 Thread Marnen Laibow-Koser
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%=

Re: [Rails] created_at, updated_at and MSSQL

2010-12-13 Thread Colin Law
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

[Rails] Re: factory_girl question

2010-12-13 Thread Marnen Laibow-Koser
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

[Rails] Localized Month Name from Integer

2010-12-13 Thread partydrone
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

Re: [Rails] Re: factory_girl question

2010-12-13 Thread David Kahn
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

[Rails] Re: Re: factory_girl question

2010-12-13 Thread Marnen Laibow-Koser
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 ==

[Rails] Re: Localized Month Name from Integer

2010-12-13 Thread Marnen Laibow-Koser
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:

[Rails] Re: Rails with macports or brew

2010-12-13 Thread Paul Bergstrom
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

[Rails] Which associations?

2010-12-13 Thread Aston J.
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 -

[Rails] Re: Rails with macports or brew

2010-12-13 Thread Marnen Laibow-Koser
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

[Rails] Re: Which associations?

2010-12-13 Thread Marnen Laibow-Koser
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

[Rails] NoMethodError undefined method `password' for #User:0x102295b28

2010-12-13 Thread John Merlino
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

[Rails] Re: Which associations?

2010-12-13 Thread Aston J.
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

[Rails] Re: Which associations?

2010-12-13 Thread Marnen Laibow-Koser
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

[Rails] Re: NoMethodError undefined method `password' for #User:0x102295b28

2010-12-13 Thread Marnen Laibow-Koser
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

Re: [Rails] NoMethodError undefined method `password' for #User:0x102295b28

2010-12-13 Thread Philip Hallstrom
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

[Rails] Re: Merging Activerecord databases

2010-12-13 Thread giorgio
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

[Rails] Re: Which associations?

2010-12-13 Thread Aston J.
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/.

[Rails] Re: factory_girl question

2010-12-13 Thread Stan Kaufman
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

[Rails] Re: Which associations?

2010-12-13 Thread Marnen Laibow-Koser
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

[Rails] Re: factory_girl question

2010-12-13 Thread Marnen Laibow-Koser
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

[Rails] Re: Which associations?

2010-12-13 Thread Aston J.
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

[Rails] Re: Merging Activerecord databases

2010-12-13 Thread Marnen Laibow-Koser
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

[Rails] Re: created_at, updated_at and MSSQL

2010-12-13 Thread pepe
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

[Rails] Re: created_at, updated_at and MSSQL

2010-12-13 Thread pepe
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

[Rails] Re: NoMethodError undefined method `password' for #User:0x102295b28

2010-12-13 Thread John Merlino
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

[Rails] Multipart upload thru J2Me fail

2010-12-13 Thread Cc C.
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

Re: [Rails] Juggernaut command not found

2010-12-13 Thread rajeevsharma86
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