[Rails] Re: NoMethodError in User sessionsController#create - Authlogic

2009-08-03 Thread Eric
I wrote an app today that used authlogic 2.1.1 on ruby 1.8.6 just fine. -eric On Aug 2, 8:04 pm, ado adoni...@gmail.com wrote: Hi, I had the same issue - I think it has something to do with the latest version of Authlogic possibly requiring Ruby 1.9???, whereas I'm running 1.8.6 on my dev

[Rails] Re: NoMethodError in User sessionsController#create - Authlogic

2009-08-02 Thread Eric
On Aug 2, 10:01 am, Rzepak G. rails-mailing-l...@andreas-s.net wrote: Hi, I'm beginner in rails, and I wanted to add to my simple application Authlogic. So I've watchedhttp://railscasts.com/episodes/160-authlogic and step-by-step done everything. And almost everything works fine, except

[Rails] Re: NoMethodError in User sessionsController#create - Authlogic

2009-08-02 Thread Eric
On Aug 2, 11:14 am, Rzepak G. rails-mailing-l...@andreas-s.net wrote: it's just user_sessions - new.html.erb % title Login % % form_for @user_session do |f| %   %= f.error_messages %   p     %= f.label :username %br /     %= f.text_field :username %   /p   p     %= f.label :password

[Rails] Re: Missing mislav-will_paginate - *SOLVED*

2009-08-02 Thread Eric
On Aug 2, 10:22 am, Michael Satterwhite rails-mailing-l...@andreas- s.net wrote: Check outhttp://www.rubygems.org/read/chapter/1for details on what's going on here. It's working now. Thanks to all who helped. I especially appreciate the reference. While the help is great - and go me going

[Rails] Re: How to upload video to my Flash Media Server ?

2009-08-02 Thread Eric
On Aug 2, 3:03 pm, Erwin yves_duf...@mac.com wrote: I have an FMS (influxis) ready for video streaming I wonder how Y can transfer the video uploaded by my web app users into the FMS ? no plugin yet I guess.. should I use a js library ? all I have seen until now is via an AS3 ? how rails can

[Rails] Re: belongs_:to association

2009-07-28 Thread Eric
On Jul 28, 10:34 am, cocozz coc...@gmail.com wrote: class Shopcategory0 ActiveRecord::Base   set_table_name shopcategories_0   has_many   :shopcategory1s, :foreign_key = :parentcategory_id end class Shopcategory1 ActiveRecord::Base   set_table_name shopcategories_1   belongs_to

[Rails] Re: Google Calendar

2009-07-26 Thread Eric
On Jul 26, 4:58 am, Abhishek shukla bettera...@gmail.com wrote: Hello Friends, I am looking out for the same functionality like Google calendar like by selecting the start date and end date by dragging a mouse. Can anyone help me out with the example or sample code. No. What you seek will be

[Rails] hello

2009-07-20 Thread eric
Hello everyone this is my first post. I come from a .NET background but I have seen first hand the elegance of ruby and now i'm hooked. I'm learning rails on 2.3.x and have worked through setting up a db connection and building scaffolding, i'm excited and needed a place to land once and a while

[Rails] Project Code Decision

2009-07-20 Thread Eric
Hello Everyone, My name is Eric. I will be starting a large project soon and I have a few questions. I will be creating a browser based sports simulator. Users will be able to create a player or a coach and ether coach a team or play on a team. We plan to have features like a live game

[Rails] Re: Project Code Decision

2009-07-20 Thread Eric
Thanks Bill. On Jul 20, 6:23 pm, bill walton bwalton...@gmail.com wrote: Hi Eric On Mon, 2009-07-20 at 08:28 -0700, Eric wrote: I know I will be developing the site itself with rails.   Super. However I am not sure how well rails will work for the actual simulation.  My question

[Rails] Re: my first app with RoR problem.

2009-07-20 Thread Eric
On Jul 20, 7:08 pm, Renzo renz.perez.mend...@gmail.com wrote:   no such file to load -- sqlite3 Install sqlite3. -eric --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

[Rails] Re: Basics of Capistrano

2009-07-15 Thread Eric
On Jul 15, 12:14 am, Pål Bergström rails-mailing-l...@andreas-s.net wrote: I'm searching the net but about Capistrano, but can't get a complete understanding. Could someone please give me some small hints :) I have local developer environment, using git. The remote server also has git and I

[Rails] Re: Working Depot app? (not AWDWR-related)

2009-07-15 Thread Eric
On Jul 15, 12:39 am, Felix Schäfer schae...@cypres-it.com wrote: Am 15.07.2009 um 05:26 schrieb Marnen Laibow-Koser: Felix Schäfer wrote: Am 14.07.2009 um 21:35 schrieb lph Bl : http://www.netbeans.org/kb/samples/ruby-depot.html That's the code from AWDWR (Agile Web Development with

[Rails] Re: Problem with routes.rb in rails 2.3.2

2009-07-15 Thread Eric
all the routes in routes.rb, so the following are the only two statements in routes.rb: ActionController::Routing::Routes.draw do |map| end When I run “# rake routes –trace” I get: Why are you even trying that? Don't. -eric --~--~-~--~~~---~--~~ You

[Rails] Re: How to check if a table is empty ?

2009-07-12 Thread Eric
approach... .empty? .nil? .. two things I use heavily in my projects... Typically I use something like 'unless Model.first', but are any of these techniques particularly lighter/faster on the db than others? -eric --~--~-~--~~~---~--~~ You received this message

[Rails] Re: Storing Images in Database or File System?

2009-07-10 Thread Eric
is pretty much just a system call to the `convert` utility. -eric On Jul 10, 11:18 am, SS stoyan.stoitch...@gmail.com wrote: Thank you all for your responses. What I'm trying to achieve is allowing users to post their photos on the website and give them ability to search for photos of others

[Rails] Senior Ror,Mysql

2009-07-08 Thread eric cs
We are looking for experienced Ruby on Rails, Mysql, Ajax, Padrones de diseno,uml,CSS desarrollador de un proyecto completo. El proyecto se llevaría a cabo a través de Internet, 8-9 horas al día durante un mes por lo menos. Por favor envíe su CV y aspiraciones salariales.

[Rails] Re: Different version of RoR on server

2009-07-08 Thread Eric
On Jul 8, 3:24 pm, Pål Bergström rails-mailing-l...@andreas-s.net wrote: Eric wrote: On Jul 8, 2:15 pm, P l Bergstr m rails-mailing-l...@andreas-s.net wrote: I use rails 2.3.2. The server use 2.1.1. What do I do? Make a new app on my side based on 2.1.1? If yes, how do I do

[Rails] Re: Creating a Hierarchical View

2009-07-01 Thread Eric
different ways of doing essentially the same thing.  Both could be helpful in creating a hierarchical view but neither provides a slam- dunk approach to that end. Rails still requires programming, after all. Are you having trouble creating an unordered list in your view or something? -e

[Rails] Re: First application: Alternatives to creating a database?

2009-06-28 Thread Eric Vernon
it. Eric --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to rubyonrails

[Rails] Re: Help: Webmonkey's Rails example NOT working on Bluehost

2009-06-27 Thread Eric
Sounds like it's a problem with Bluehost's documentation, have you tried asking them about it? -eric On Jun 27, 7:59 am, GuruOne bdhin...@gmail.com wrote: Dear Tom, Thxs for the links to the bluehost articles. I followed and executed step by step article '000207' without any hitches. I

[Rails] Re: How can I contribute with http://api.rubyonrails.org/ ?

2009-06-23 Thread Eric Fer
:) On Jun 21, 10:48 pm, pharrington xenogene...@gmail.com wrote: On Jun 21, 9:12 pm,Eric Fereric@gmail.com wrote: Hi everyone. I was looking for a helper definition (create_table) and I've noticed that the documentation inhttp://api.rubyonrails.org/isincomplete. It's not covering the sexy

[Rails] Re: How can I contribute with http://api.rubyonrails.org/ ?

2009-06-23 Thread Eric Fer
Hi Frederick. Thanks very much for the tip about docrails ;) On Jun 22, 4:35 am, Frederick Cheung frederick.che...@gmail.com wrote: On Jun 22, 2:53 am, pharrington xenogene...@gmail.com wrote: On Jun 21, 9:12 pm,Eric Fereric@gmail.com wrote: Hi everyone. I was looking

[Rails] Re: problems with has_many :through and habtm

2009-06-21 Thread Eric
explain the dupes. -eric --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email

[Rails] Re: problems with has_many :through and habtm

2009-06-21 Thread Eric
hard to tell so far. -eric On Jun 21, 8:29 am, erik e...@carwoo.com wrote: I'm in Rails 2.2.2 if that matters. Erik On Jun 21, 8:27 am, erik e...@carwoo.com wrote: I don't follow you. I find all the options based on the idea of a trim (a style).  Think about how a honda civic ex might

[Rails] How can I contribute with http://api.rubyonrails.org/ ?

2009-06-21 Thread Eric Fer
Hi everyone. I was looking for a helper definition (create_table) and I've noticed that the documentation in http://api.rubyonrails.org/ is incomplete. It's not covering the sexy migration options to defining the columns like t.string :name. It's just showing t.column :name, :string way. There

[Rails] Re: Problem with calendar_date_select

2009-06-16 Thread Eric
On Jun 16, 10:24 am, Rafael Roque rails-mailing-l...@andreas-s.net wrote: Anyone??? You know, sometimes it takes more than an hour for people to get to your question. It looks like either the gem isn't installed on your Tomcat server or Tomcat is having trouble finding it.

[Rails] BME-cat importer to db

2009-06-15 Thread Eric Carl
It's the first project for me on ruby on rails. I want to write a XML importer to database. But i have several question 1)for my purpose of creating importer should I have an example file with full-filled XML-data? (in the case creating all lines in the different tables) 2) do you an example of

[Rails] Re: Transferring old RoR site.... Problems.... sigh...

2009-06-05 Thread Eric
On Jun 5, 4:47 pm, Rusty Rustybucket rails-mailing-l...@andreas- s.net wrote: That's a really really old version of rubygems, but quite a new version of mongrel. There used to be a method in rubygems called require_gem, but later on that was renamed to just gem, which mongrel is trying to

[Rails] Re: Logout link.....unless logging in!

2009-05-19 Thread Eric
adjust for authlogic: if current_user.logged_in? # logout link else # login/signup links end On May 19, 1:36 pm, JannaB mistressja...@hotmail.com wrote: I have a link, /user_session/new, which takes you to a login screen (I am using AuthLogic plugin) and in my layout template I have

[Rails] save doesn't work in migration

2009-05-06 Thread Eric L.
I'm writing a migration to merge my first and last name fields into a single name field. However, writing to the new name column doesn't work within the migration. Why is this so? def self.up add_column :users, :name, :string for user in User.all user.name = user.first_name + ' ' +

[Rails] Re: save doesn't work in migration

2009-05-06 Thread Eric L.
Never mind, after some Googling, found reset_column_info to be my answer. On May 6, 10:18 pm, Eric L. eli...@gmail.com wrote: I'm writing a migration to merge my first and last name fields into a single name field.  However, writing to the new name column doesn't work within the migration

[Rails] Question regarding has_one and association_build

2009-05-05 Thread Eric L.
build_author end end This works perfectly for me. So is the warning in the doc something I should be worried about? Link to doc: http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html#M001790 Thanks, Eric --~--~-~--~~~---~--~~ You

[Rails] Re: any way to submit an image as part of a form (Javascript?)

2009-05-02 Thread Eric
On May 2, 4:14 am, itsastickup newsgro...@lorriman.com wrote: I would like to submit the data of a rendered image from the users browser in a form. do you mean you'd like to allow users to upload images? -eric --~--~-~--~~~---~--~~ You received this message

[Rails] Re: Multiple models

2009-05-02 Thread Eric
at fields_for. Watch the Complex Forms trilogy of Railscasts from a couple years ago. -eric --~--~-~--~~~---~--~~ 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

[Rails] Re: Restful rails

2009-05-02 Thread Eric
On May 1, 5:03 pm, chaitanya nagachaitanya.vella...@gmail.com wrote: I have some questions regarding restful rails applications. Is the concept of restful so tied to the database ? What if a application does not use a database  at all  or if the application is using a legacy database which

[Rails] Re: Linking to RJS files from multiple locations

2009-05-02 Thread Eric
%= button_to_remote Test, :url = {:controller = 'testcontroller', :action = 'test'} % The RJS file is the same, just moved to the 'testcontroller' view directory.  This dosen't seem to be working, can anyone advise me as to what's going wrong? Is the request even reaching the

[Rails] Creating Validating w/ has_many :through

2009-04-27 Thread Eric Milford
I don't have a full grasp on has_many :through associations. I've detailed my models below and am trying to figure out how to do the following in the proper manner. 1. Add the selected software (only one selectable) to the current ticket. I have @ticket.software @software working just fine.

[Rails] Re: plugin loading

2009-04-24 Thread Eric
On Apr 24, 1:22 pm, David Forman rails-mailing-l...@andreas-s.net wrote: I just updated from Rails 1.2.0 to Rails 2.3.2 and none of the app plugins seem to load. The server starts without any problems, but none of the plugin code is available. Help! That's a big jump, I'm betting you'll need

[Rails] Resource-based routing and controller module

2009-04-22 Thread Eric L.
for the user RequestsController. Is there a way to have it route POST requests to the user RequestsController (with URL /requests), and route all other requests (PUT, GET, etc.) to Admin::RequestsController (with URL / admin/requests)? Thanks, Eric

[Rails] Re: Can u visit rubyonrails.org

2009-04-22 Thread Yves-Eric
It just looks like somebody forgot to renew the domain name. Until this gets resolved, could someone please post here the IP(s) of the rubyonrails.org server(s) so that we can temporarily put them in our host files? Thank you. -- Yves-Eric On Apr 23, 1:23 pm, Phlip phlip2...@gmail.com wrote

[Rails] Re: attachment_fu giving problem on production

2009-04-21 Thread Eric
Is ImageMagick installed? On Apr 21, 11:37 am, Abhishek shukla bettera...@gmail.com wrote: Hello friends, I have configured attachment_f. It's working fine on Local(development) system but giving problem on production. Basically on production the attachment_fu is not able to generate

[Rails] Re: Calendar control

2009-04-08 Thread Eric
On Apr 8, 7:43 am, Sushrut Sathe rails-mailing-l...@andreas-s.net wrote: what is sedu gem? how to get that use calendar control For calendars, I use either of the following two, depending on the purpose: http://code.google.com/p/calendardateselect/

[Rails] Re: Problem with MYSQL after re-installing rails

2009-04-07 Thread Eric Bolden
Try installing the mysql gem with sudo env ARCHFLAGS=-arch i386 gem install mysql -- --with-mysql-dir=/ usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib --with-mysql- include=/usr/local/mysql/include from: http://newwiki.rubyonrails.org/database-support/mysql On Apr 7, 2009, at 5:53 AM,

[Rails] Re: Just can't get Ruby on Rails to work in Leopard

2009-04-06 Thread Eric Bolden
version. I am using an older mysql install. I prefer 5.0 over 5.1 right now. 5.0.77 is the current version I am installing. http://dev.mysql.com/downloads/mysql/5.0.html#macosx-dmg Eric On Apr 5, 2009, at 2:19 AM, Scott Corgan wrote: I've tried a million different tutorials and I just can't

[Rails] Re: Many to many in separate has_one controller

2009-04-01 Thread Eric
This is part of what has_many :through is for. You already have an enrollments model, so you can just create a controller for it, adding extra attributes where necessary (cancelled, etc.). -eric On Apr 1, 11:38 am, mark_d darc...@gmail.com wrote: Hi. I have a problem deciding the best way

[Rails] Re: RubyonRails GUI for Leopard?...

2009-03-30 Thread Eric Fer
One more point for TextMate. Quite clean and lightweight. A few colleagues of mine are using MacVIM and they were using TextMate before that. See ya Eric Fer On Mar 28, 7:30 pm, zensuite zen.su...@gmail.com wrote: Hi everybody, I'm a web developer interested on moving to rubyonrails framework

[Rails] Re: No such file or directory - layouts/application.html.erb

2009-03-30 Thread Eric
On Mar 30, 11:43 am, Bharat Ruparel rails-mailing-l...@andreas-s.net wrote: What is it that I am missing here? %= render :file = layouts/application % That comports with your error, right? Seems too simple of a solution, but keep in mind that the application layout will be used automatically

[Rails] Re: advanced search for a model (including keywords)

2009-03-25 Thread Eric
It's really basic search you're looking for. 100,000 records is not that many, use acts_as_ferret with a local index and you'll be fine for quite a while. On Mar 25, 7:25 am, aupayo cres...@gmail.com wrote: Hello, I am new in rails and I am working in an application which requires advanced

[Rails] Re: remote_form_for ajax validation

2009-03-25 Thread eric
Like commonly with regular forms, I prefer javascript validation before the form submits. I happened across what I think is a valid method. % remote_form_for(product, :before = if(!validateForm(this)) { return false; }) % Where validateForm is a javascript function that does the form

[Rails] Re: find :all using :group

2009-03-23 Thread Eric
On Mar 23, 11:38 am, Frederick Cheung frederick.che...@gmail.com wrote: On Mar 23, 2:21 pm, Ayeye Brazov rails-mailing-l...@andreas-s.net wrote: User.find(:all, :group = :os) however, the result is an array having only one user for each os group. I'd like to have ALL the users grouped  

[Rails] Re: Rails making it tougher for newbies?

2009-03-21 Thread Eric
Books are very much lagging indicators of the state of Ruby on Rails. The best documentation (for better or worse) is on the web. Start at http://guides.rubyonrails.org/ On Mar 21, 3:12 pm, Power One rails-mailing-l...@andreas-s.net wrote: I'm trying to learn how to use ruby on rails.  Just two

[Rails] Re: attachment_fu doesnt resize photo and create thumbnails

2009-03-16 Thread Eric
You should verify that your configured processor, such as rmagick/ imagemagick, is installed and available to the user under which the application runs. On Mar 16, 9:57 pm, Tam Kbe rails-mailing-l...@andreas-s.net wrote: Hello, I'm trying to use attachment_fu in order to upload photo and

[Rails] Re: Interesting arrangement

2009-03-13 Thread Eric
http://railscasts.com/episodes/28-in-groups-of On Mar 13, 2:06 pm, DanC d.m.coleg...@durham.ac.uk wrote: Hi all, I have been asked to develop an app which basically displays 100 images on a homepage arranged in a 10 x 10 grid. I have been using attachment_fu to upload images although I

[Rails] Re: Making the 'Back' link look the same as form.submit Save

2009-03-10 Thread Eric
What cool blue box? My submit buttons just look like buttons, so you probably already have some CSS that you could copy. On Mar 10, 1:31 pm, InventoryTrackers inventorytrack...@gmail.com wrote: Does anybody know how Rails paints that cool blue box around the %= form.submit Save % In most of

[Rails] Re: Can RoR do this? How easily?

2009-03-04 Thread Eric
adding an entire language with bells and whistles would complicate your install package immensely. given your reqs I'd just plan to run the whole thing in the browser and move it to .js and maybe a filedb. On Mar 4, 2:46 pm, Zonker zonker.in.gen...@gmail.com wrote: I am consulting on a software

[Rails] Re: Linking to an external model/view within an application

2009-02-28 Thread Eric
link_to(sub_article.title, sub_article) Rails knows the rest. -eric On Feb 28, 11:33 am, Jimmy Perrine rails-mailing-l...@andreas-s.net wrote: Hey guys, I am working on a class project and I have two scaffolded models, articles and sub_articles. I have the relationships set to articles

[Rails] Re: tagging

2009-02-26 Thread Eric
On Feb 26, 6:21 am, Ar Chron rails-mailing-l...@andreas-s.net wrote: +1 to laziest post on the board... I wouldn't go that far. After all, he didn't demand that you write and post a working implementation like others do. -e --~--~-~--~~~---~--~~ You received

[Rails] Re: Getting started, sort of

2009-02-25 Thread Eric
Any help or ideas would be appreciated Somewhere in here: http://www.google.com/search?q=windows+sqlite3-ruby+native+extension --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to

[Rails] Re: Getting started, sort of

2009-02-25 Thread Eric
, but it was nevertheless not helpful.  What do I do? Uninstall my current version of gem and install the earlier version? On Feb 25, 4:23 pm, Eric ericgh...@gmail.com wrote: Any help or ideas would be appreciated Somewhere in here:http://www.google.com/search?q=windows+sqlite3-ruby+native

[Rails] Re: Collection of Partials, :as Option No Good, TemplateError

2009-02-24 Thread Eric
Why not use :locals = ? On Feb 24, 11:13 am, MaggotChild hsomob1...@yahoo.com wrote: I'm trying to render a collection of partials using :as. It raises an undefined local variable exception. Not sure why: ~/delivery-log/app/views/packages $ ls -1 _package.html.erb _package_list.html.erb

[Rails] Re: render :update problem

2009-02-24 Thread Eric
Is there an error in the log at all for your current implementation? On Feb 24, 12:02 pm, Me chabg...@gmail.com wrote: All I am trying to do is to put a different partial in place of the the once that is already there.  Not an ajax call to the function. On Feb 24, 12:32 pm, Chris Habgood

[Rails] Re: Collection of Partials, :as Option No Good, TemplateError

2009-02-24 Thread Eric
On Feb 24, 1:54 pm, MaggotChild hsomob1...@yahoo.com wrote: On Feb 24, 11:54 am, Eric ericgh...@gmail.com wrote: On Feb 24, 11:13 am, MaggotChild hsomob1...@yahoo.com wrote: I'm trying to render a collection of partials using :as. It raises an undefined local variable exception

[Rails] Re: Implementing a web service in rails

2009-02-24 Thread Eric
Help and advice for what? I can't find a question in there. -e On Feb 24, 4:17 pm, Ryan Leary rails-mailing-l...@andreas-s.net wrote: Hi all, I need to implement a web service in rails with the following signature: string ReceiveEvents (string A, string B, string C). As you can see, it

[Rails] Re: Security risks of cookie-based session storage

2009-02-23 Thread Eric L.
Good point. I realized risk #1 could be reduced by storing the secret in a secure place on the deployment server rather than under source control. On Feb 21, 3:20 pm, Frederick Cheung frederick.che...@gmail.com wrote: On Feb 21, 5:06 pm, Eric L. eli...@gmail.com wrote: Should I be concerned

[Rails] Re: Simple Tree view code required

2009-02-23 Thread Eric
What didn't work about them? What was lacking? On Feb 23, 10:06 pm, Tony Puthenveettil rails-mailing-l...@andreas- s.net wrote: Hi all, Being a newbie in Ruby, I'm really fed up trying almost all the available tree examples in net like YUI Tree, dhtmlxTree, LiveTree in vain. None of them

[Rails] Re: CHECK if param exists? please help

2009-02-22 Thread Eric
@from = time.now - 3.months.ago -eric On Feb 22, 10:34 am, Dave Smith rails-mailing-l...@andreas-s.net wrote: hi folks. i want to check if a param exists if not to set it to a default value for my date range filter. in my controller i have:   @from_date = Date.strptime(params[:startdate],%d

[Rails] Re: How to get the ID of the object I just saved in the DB?

2009-02-22 Thread Eric
Don't you still have @post? On Feb 22, 4:25 pm, Guillaume Loader rails-mailing-l...@andreas- s.net wrote: Hello everyone! Does the method save return the ID ? Because i'm doing this : if @post.save flash[:notice] = 'Post was successfully created.' end and I need the ID of the post I

[Rails] Re: CHECK if param exists? please help

2009-02-22 Thread Eric
On Feb 22, 3:46 pm, Phlip phlip2...@gmail.com wrote: Eric wrote: Use the ternary/comparison operator. I've removed your strptime stuff, but the idea is like so: @from_date = params[:startdate] ? params[:startdate] : (Time.now - 3.months.ago) 3.months.ago is an absolute time (probably

[Rails] Re: How to get the ID of the object I just saved in the DB?

2009-02-22 Thread Eric
Try: puts @post.inspect and check your logs On Feb 22, 5:24 pm, Guillaume Loader rails-mailing-l...@andreas- s.net wrote: What do you mean? That I should do this : @post.post_id ? -- Posted viahttp://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received

[Rails] Re: How can I know if a file has been attached?

2009-02-22 Thread Eric
How can I test if the variable file is empty or not? Thank you! Answer should be somewhere here: http://www.tutorialspoint.com/ruby/ruby_methods.htm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails:

[Rails] Re: How do I access a variable defined in application.rb from within application.rhtml?

2009-02-21 Thread Eric
So why not use that, then? Whatever works... Also, you might brush up on MVC and beginner's Ruby as far as setting variables in models go: http://wiki.rubyonrails.org/rails/pages/UnderstandingRailsMVC On Feb 21, 12:45 pm, ericindc ericmilf...@gmail.com wrote: Title pretty much explains it.  

[Rails] Re: belongs_to or has_many

2009-02-21 Thread Eric
Any chance of taking this list moderated? On Feb 21, 1:39 pm, Jo Jo rails-mailing-l...@andreas-s.net wrote: 2 tables Items and Categories Categories (id, name) Items (id, name, category_id) Category_id can be null, and there are Categories that has not an Item. -- Posted

[Rails] Security risks of cookie-based session storage

2009-02-21 Thread Eric L.
could be compromised, which is always a possibility (however unlikely.) What do you think? Eric --~--~-~--~~~---~--~~ 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

[Rails] Re: guides on css strategy

2009-02-21 Thread Eric L.
I had the same question when I was starting out with CSS. A lot of is simply trial and error, and you figure out what is best. Buy a good book on CSS (I read Bullet Proof CSS design), and that will give you some guidance as to what's the best class/id naming style. In general I follow these

[Rails] Re: Nested Resources: How to view all children resources

2009-02-06 Thread Eric
you just need to create an un-nested route for tasks: map.resources :tasks outside of the nested routes block. they won't conflict. On Feb 6, 7:59 pm, Adam Akhtar rails-mailing-l...@andreas-s.net wrote: I want to be able to view all the children resources in a nested resoruce scheme. Ie.

[Rails] Re: Controller design for app with different user types

2009-02-02 Thread Eric
Roles are fairly well-documented in the blogosphere, even if the roles are entirely orthogonal. Here are a few readings to get you started: http://metautonomo.us/2008/09/30/easy-role-based-authorization/ http://railsforum.com/viewtopic.php?id=1579

[Rails] Re: Which command is used to list the gems used by an application?

2009-02-01 Thread Eric
rake gems also: rake --tasks On Feb 1, 8:24 pm, olivierntk olivier...@gmail.com wrote: Hi, I have been working on an application for a few months and installed some gems, but I don't remember the exact list. I want to deploy my app and I need to install the gems I used. Which command line

[Rails] Re: NoMethodError: undefined method `expenses'

2009-01-28 Thread Eric
UMQ: Use More Quotes! :vendor = vendor1, :amount = 75.00 On Jan 28, 9:22 pm, Andrew Reid rails-mailing-l...@andreas-s.net wrote: Hi, I am trying to figure out why I am receiving the following error.  I am following an Apple Developers Rail Application tutorial.

[Rails] Re: MySQL and RoR 2.2.2 -- deadlock?

2009-01-19 Thread Eric Bolden
/installing-mysql-gem-on-mac-osx-105/ I have included the other links I browsed on the way to the solution too. There is likely a path difference with Ubuntu, but maybe this will help. Eric http://discuss.joyent.com/viewtopic.php?id=5992 sudo gem install mysql -- --with-mysql-include=/usr/local

[Rails] Re: Ruby Debug Not Working

2009-01-18 Thread Eric J
. On Jan 18, 7:13 am, Fernando Perez rails-mailing-l...@andreas-s.net wrote: Eric J wrote: I installedruby-debugusing this command:   sudo gem installruby-debug-y and then added the line to config/environments/development.rb:   require ruby-debug I restarted webrick and put 'debugger

[Rails] Re: Ruby Debug Not Working

2009-01-18 Thread Eric J
/server mongrel On Jan 18, 6:21 am, Eric J eric.d.john...@gmail.com wrote: I put require ruby-debug at the top of config/environments/ development.rb. I just tried moving it to the bottom of the file and that didn't seem to help either. I put the command 'debugger' at the start of one of my

[Rails] Re: Ruby Debug Not Working

2009-01-18 Thread Eric J
Well it started working, so maybe it was mongrel! Thanks for your help guys. On Jan 18, 8:27 am, Teedub twscann...@gmail.com wrote: I think you need mongrel fordebug try script/server mongrel On Jan 18, 6:21 am, Eric J eric.d.john...@gmail.com wrote: I put require ruby-debug

[Rails] Ruby Debug Not Working

2009-01-17 Thread Eric J
. I've tried several times and restarted webrick, to no avail. rails 2.1.1 ruby1.8.6 ruby-debug-0.10.3 Eric --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email

[Rails] Re: Checking for Functional Site

2009-01-06 Thread Eric
cron wget to run every minute pulling HEAD requests and email you if there's a 404 or 500 or whatever you get when it's busted. -eric On Jan 5, 11:11 pm, Freddy Andersen fre...@cfandersen.com wrote: Sounds like you need a new hosting location!! Your statement about Rails is a new

[Rails] Re: store parameters variable into database

2009-01-06 Thread Eric
if those colons (:) are in the db, you have almost-readymade json. -eric On Jan 5, 7:05 pm, Ukrit Himakoon rails-mailing-l...@andreas-s.net wrote: rp8 -_- wrote: Ukrit Himakoon wrote: rp8 -_- wrote: One way is to save a serialized hash into the db and you can deserialize the saved hash

[Rails] Re: Layout with yield usage?

2008-12-30 Thread Eric
Use %= yield :navigation % in your layout instead of the render :partial, and use content_for :navigation in your view(s). Watch Railscast 8. Also, have you checked to see whether your nav render is duplicated in the view? -eric On Dec 30, 10:14 am, net hengr...@student.liu.se wrote: Hi! Im

[Rails] Re: Calendar icon for date selection functionality

2008-12-20 Thread Eric
calendar_date_select On Dec 20, 10:33 am, pepe p...@betterrpg.com wrote: Hello. I would like to add date selection functionality using a calendar icon. Is there a tutorial anywhere I could use? Thanks in advance. Pepe --~--~-~--~~~---~--~~ You received

[Rails] Re: issue loading RMagick

2008-12-17 Thread Eric
Have you installed RMagick? -e On Dec 17, 9:51 am, mi mauriziosime...@yahoo.it wrote: Using attachment_fu and 'Rmagick' as processor I have the following error Problems loading RmagickProcessor: no such file to load -- RMagick ( the code is            begin             processor_mod =

[Rails] Re: mysql 2.7.3 gem install for Windows appears incomplete

2008-12-10 Thread Eric
On Dec 7, 10:13 pm, Wes Gamble [EMAIL PROTECTED] wrote: No, still haven't resolved it.  Hoping that the next release of the mysql gem for Windows will work better. Yeah, still broken here. --~--~-~--~~~---~--~~ You received this message because you are

[Rails] Re: I am New to Ruby..Please Help me ON start

2008-12-10 Thread Eric Hill
Just to follow up, I was able to get rake to run on Windows under 2.2.2 by using the InstantRails fix: http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/ 1. Copy libmysql.dll from there to your ruby/bin directory 2. gem install mysql --no-rdoc -eric On Tue

[Rails] Re: I am New to Ruby..Please Help me ON start

2008-12-10 Thread Eric Hill
no such file to load -- sqlite3 RAILS_ROOT: C:/Ruby/testProgram I need to use the mysql as database. Apparently the mysql gem is currently broken for Windows, so you should probably get used to using SQLite for now. -e --~--~-~--~~~---~--~~ You received

[Rails] Re: NoMethodError: undefined method `fformat' - rake aborted!

2008-12-06 Thread Eric Roscher
Sorry, I've forgotten to say that I've tried to issue manually those queries that postgresql_adapter.rb does, and jere are the results, just in case that could help: postgresql_adapter.rb (line 251): query('SHOW standard_conforming_strings')[0][0] = 'off' postgresql_adapter.rb (line

[Rails] Mock today

2008-11-19 Thread Eric LIn
In some of my unit tests, I find the need to set today to a different value than the actual today. For example, to test the model method balance_of_today, which takes no argument, I want to have Date.today be a specific date for the purpose of testing. In other words, I want to do something like

[Rails] Re: Mock today

2008-11-19 Thread Eric LIn
Thanks, both of these are good suggestions. I will look into them. On Nov 19, 12:43 pm, Rob Biedenharn [EMAIL PROTECTED] wrote: On Nov 19, 2008, at 3:37 PM, Frederick Cheung wrote: On Nov 19, 8:20 pm, Eric LIn [EMAIL PROTECTED] wrote: In some of my unit tests, I find the need to set

[Rails] Re: [Off-topic] What is the market rate for Ruby on Rails jobs?

2008-11-11 Thread Eric Rivas
=Ruby on Rails Developer Jobs Globally Let me know if you have any questions. Eric Rivas Carl Lerche wrote: Hello, I'm currently in the market for a full-time position and saw a job opening for a ruby on rails developer in the area (north-west US). The position pays between $40k

[Rails] Re: [Off-topic] What is the market rate for Ruby on Rails jobs?

2008-11-11 Thread Eric Rivas
Seems my link didn't work, here it is again: http://www.odesk.com/trends/Rails Thanks Eric Rivas Eric Rivas wrote: Hey All, We compiled some data on Ruby on Rails trends that show some (hopefully) very interesting info for individuals looking for job rates for Ruby on Rails jobs. You

[Rails] intranet applications

2008-10-28 Thread Eric Sheris
Hello, I am getting ready to start building an intranet for a small company i work for. I have a question about the general architecture of such a thing. the intranet itself will contain multiple applications for various departments. what i am trying to figure out is if i should start by making

[Rails] Re: intranet applications

2008-10-28 Thread Eric Sheris
Frederick Cheung wrote: On Oct 28, 7:51�pm, Eric Sheris [EMAIL PROTECTED] Broadly speaking I'm on the side of multiple smaller rails apps than one huge one. Easier to write, easier to maintain. The answer also depends to an extent on what levels of interaction you need between the apps

[Rails] Re: Graph view

2008-10-11 Thread Eric Schulte
(base.map) % %= image_tag(base.gif, :usemap = '#map_name') % I'd be interested to hear better solutions for this problem. Best -- Eric [EMAIL PROTECTED] [EMAIL PROTECTED] writes: Hi, I am working on the social networking application where I have to show all my connections in graph view

<    1   2   3   4   >