[Rails] Does any one know of this plugin "Acts As Emailable"

2008-09-12 Thread Stephen
I have found this plugins website "http://www.railslodge.com/plugins/ 96-acts-as-emailable" and would like to download and use the plugin. But apparently the SVN repository listed "svn://matt-beedle.com:3396/ acts_as_emailable" is offline. Does anyone know of an alternate site for this plugin?

[Rails] tzinfo_timezone

2008-09-12 Thread Ricky
Hi, I tried installing the tzinfo_timezone plugin (and the tzinfo gem) in my rails 2.1 application. Now calls to date_select fail with: wrong number of arguments (3 for 2). Removing the tzinfo_timezone plugin fixes everything, but then, of course, I'm left without DST support. The first part of

[Rails] Re: Params hash in rails

2008-09-12 Thread Frederick Cheung
On Sep 12, 7:48 am, Sunny Bogawat <[EMAIL PROTECTED]> wrote: > Hi, >   I want to know that how 'params' get created in rails? >   when http: request comes we have get all parameter using hash params >    e.g:- params[:id] >    But in ActionController how params get created and how it is > initia

[Rails] Re: Params hash in rails

2008-09-12 Thread Sunny Bogawat
Could you explain me this in detail ? -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@goo

[Rails] Referencing exactly two models of the same kind

2008-09-12 Thread [EMAIL PROTECTED]
Hi, how do I solve this in Rails: Lets say I have a User and a Message. Now, a Message is sent from one User to another User, which means that in the Message I have to reference a User twice! This seems to be a problem, if I do not user one-to-many or many-to- many relationships, because it seem

[Rails] Re: Params hash in rails

2008-09-12 Thread Frederick Cheung
On 12 Sep 2008, at 09:09, Sunny Bogawat wrote: > > Could you explain me this in detail ? > Unless there's something specific you're after you're better off reading the code yourself. It's just a bunch of regexpy type things pulling apart the query string/form data Fred > -- > Posted via ht

[Rails] Re: Referencing exactly two models of the same kind

2008-09-12 Thread Frederick Cheung
On 12 Sep 2008, at 09:39, [EMAIL PROTECTED] wrote: > > class Message < ActiveRecord::Base > belongs_to :user; # Sender > belongs_to :user2; # Receiver > end > > The DB Tables should look something like this: > > users > id > > messages > id, user_id, user2_id; > > How do the Rails models and the

[Rails] Re: Page does not display

2008-09-12 Thread Frederick Cheung
On 11 Sep 2008, at 21:46, Shandy Nantz wrote: > > Frederick Cheung wrote: >> find out why that filter is returning false. >> >> Fred > > What's happening is that I have this before_filter that set some flags > and then returns. I pass an id along so I can instantiate a User > object > and then

[Rails] Re: An open source ruby on rails shopping cart

2008-09-12 Thread Robert
Thanks mate! Robert On Sep 12, 6:39 pm, "Emanuele Tozzato" <[EMAIL PROTECTED]> wrote: > good job! :) > > I will try it for sure! > > thanks > > > > On Thu, Sep 11, 2008 at 11:11 PM, Robert <[EMAIL PROTECTED]> wrote: > > > Dear Ruby on Rails: Talk > > > We released an open source shopping cart

[Rails] Using Rails view templates without the Controller? How?

2008-09-12 Thread Chris Richards
Hi I have a SupplierBreakdownReport class that uses a rails view to generate a html report, which then is converted into a PDF, as follows : class ReportGeneratorController < ApplicationController .. def supplier_breakdown_report ... if request.post? @report = SupplierBreakdownReport.n

[Rails] Re: tzinfo_timezone

2008-09-12 Thread Frederick Cheung
On 12 Sep 2008, at 04:56, Ricky wrote: > > Hi, > > I tried installing the tzinfo_timezone plugin (and the tzinfo gem) in > my rails 2.1 application. Now calls to date_select fail with: wrong > number of arguments (3 for 2). Could this be conflicting with the timezone stuff in rails 2.1 ? Fred

[Rails] Re: time value won't come back from UTC

2008-09-12 Thread Frederick Cheung
On 11 Sep 2008, at 18:42, Stuart Corbishley wrote: > > Hi there, > > I'm fairly new to RoR, and I seem to be having a problem with :time > types. > > I save my times with a time_select on my form, to a time type field on > MySQL. > > Rails automatically pulls it back to UTC from my timezone (+02

[Rails] undefined method

2008-09-12 Thread karthik reva
undefined method `username' for 1:Fixnum Extracted source (around line #3): 1: <% form_tag (:action => 'update_password', :id => @user) do %> 2: enter old password 3: <%= password_field 'user', 'username' %> 4: 5: enter new password 6: <%= password_field 'user', 'password' %> I got above erro

[Rails] Get an attribute's value without calling the AR get method

2008-09-12 Thread Max Williams
I want to override a get method to try to get a value from an associated object first, and then get the object's own value if the associated object returned nil. But, this requires me to avoid calling a get method from inside the same get method. To be specific: there are two classes, School and

[Rails] Re: Rails 2.1 Timezone Support

2008-09-12 Thread Peter De Berdt
On 11 Sep 2008, at 19:13, Nathan Esquenazi wrote: > The part I am trying to figure out is how to "guess" the user's > timezone > in the first place. The application I am working on calls for the user > registration to be dead simple and not include a huge timezone > selection > box. > > I can

[Rails] polymorphism with created_at and modified_at

2008-09-12 Thread [EMAIL PROTECTED]
Hi, I was wondering what happens, if I use polymorphism in combination with created_at and modified_at? Lets say I have 3 models, which all have the attributes created_at and modified_at, then how will they updated? Will changes in the child affect the "modified_at" of the parent? Will a "chil

[Rails] Re: Get an attribute's value without calling the AR get method

2008-09-12 Thread Frederick Cheung
On 12 Sep 2008, at 11:33, Max Williams wrote: > > > However, this sets up a circular loop, where the method will keep > calling itself. I'm sure that i've used a private/protected method > called something like "read_attribute" that pulled the value out of > the > database without calling the

[Rails] Re: Get an attribute's value without calling the AR get method

2008-09-12 Thread Max Williams
Frederick Cheung wrote: > > read_attribute is still there even if it's not documented. Or you can > use self[:address] > > Fred Fantastic - thanks Fred! -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are s

[Rails] routes: has_many vs. nested

2008-09-12 Thread Gerold Böhler
hello i was just wondering what the diference between map.resources :posts, :has_one => :author, :has_many => [:comments, :trackbacks] and map.resources :posts do |posts| posts.resource :author posts.resources :comments posts.resources :trackbacks end is. which one should i use? i

[Rails] Re: Edge rails - wrong number of arguments in validations.rb

2008-09-12 Thread Drogomir
No one is having this error while using edge rails? On Sep 11, 12:45 am, Drogomir <[EMAIL PROTECTED]> wrote: > Hi, > > I have strange error onedgerailswhile doing validates_uniqueness_of > or some other validates_* methods. > > basically it looks like that:http://pastie.org/269935 > > it's weird

[Rails] Re: undefined method

2008-09-12 Thread Frederick Cheung
On 12 Sep 2008, at 10:35, karthik reva wrote: > > undefined method `username' for 1:Fixnum > > Extracted source (around line #3): > > 1: <% form_tag (:action => 'update_password', :id => @user) do %> > 2: enter old password > 3: <%= password_field 'user', 'username' %> > 4: > 5: enter new pass

[Rails] REST & Routing: namespaces within resources

2008-09-12 Thread mattwynne
I know I can use a namespace on the map passed into the block for ActionController::Routing::Routes.draw because I've done that with some Admin:: controllers. What I want to do is something similar with controllers for resources that belong to another resource. Is it possible to do something li

[Rails] Re: Running a specific migration

2008-09-12 Thread Adam
Hi Christian, That rake task didn't work for me. However, I googled "db:migrate:up" and found the task as part of the easily_migrate plugin. This was still not what I'm looking for - db:migrate:up just moves the db up one version, it cannot pick out an arbitrary migration to run. I added a few of

[Rails] migrate my rails app from v=1.1.6 to v=2.0.1

2008-09-12 Thread Raju Aralikatti
hi all, We have a very big application, We started coding in rails 1.1.6, Now we want to migrate our rails application from the older 1.1.6 version to the latest released version, Can anyone please give me instructions in doing so, is this migration feasible or not, Please tell me disadvantages al

[Rails] Session data is not saved in the session file although file created (using :p_store)

2008-09-12 Thread Gabriel
Hi all, I am new to Rails. I want to test some things with sessions. But I simply cannot make them work. I am using this in the environment.rb file: config.action_controller.session_store = :p_store config.action_controller.session = { :tmpdir => "#{RAILS_ROOT}/tmp/sessions/", :session_k

[Rails] Bypassing Paypal Integration

2008-09-12 Thread Saurav Chakraborty
Hi all, I have implemented Paypal integration [Express checkout ] in our project,using Ruby PayPal SDK. Now for some reason, I want to by pass the Paypal Integration, without removing the codes for paypal integration.Can anybody tell me how to do it ? -Saurav -- Posted via http://www.ruby-forum

[Rails] File extension changes xlc to doc

2008-09-12 Thread babar
Hi, Im using file_column for upload files. When i upload xlc file .After upload its extension chaged to doc.. for example before upload file abc.xlc after uploading abc.xlc.doc important thing is,locally its extension doesn't change Plz tell me the solution. thanx in adv. --~--~-~--~--

[Rails] how to retain fckeditor's value

2008-09-12 Thread babar
Hi im using fckeditor. i have two fields on form. 1.Title 2. Description ,where im using fckeditor. if i left empty field of title but putting some text in fckeditor. It empty field of title is not allowed. But the material of fckeditor removed. I want to retain the text material in fckeditor.

[Rails] Mysterious spaces in output

2008-09-12 Thread yachtman
Here is a probably an easy output formatting problem. I am trying to output a sentence that uses commas between each item (retailer) and a period once there are no more items. The problem is, I can't remove the space before my commas in the output. I've tried putting the html in quotes, but for

[Rails] Re: Mysterious spaces in output

2008-09-12 Thread Xavier Noria
>> %w(foo bar baz).to_sentence => "foo, bar, and baz" --~--~-~--~~~---~--~~ 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

[Rails] Re: Mysterious spaces in output

2008-09-12 Thread yachtman
What a nice nugget! Could you enlighten me as to what the %w does? On Sep 12, 8:27 pm, "Xavier Noria" <[EMAIL PROTECTED]> wrote: > >> %w(foo bar baz).to_sentence > > => "foo, bar, and baz" --~--~-~--~~~---~--~~ You received this message because you are subscribed t

[Rails] Re: Mysterious spaces in output

2008-09-12 Thread yachtman
How could I use a hash with '.to_sentence'. I don't have set variables, and I don't know how many I'll have. On Sep 12, 8:27 pm, "Xavier Noria" <[EMAIL PROTECTED]> wrote: > >> %w(foo bar baz).to_sentence > > => "foo, bar, and baz" --~--~-~--~~~---~--~~ You receive

[Rails] Re: Mysterious spaces in output

2008-09-12 Thread yachtman
Xavier, Thanks! You put me on the right path... This does a beautiful job: @reviews.collect {|r| r.retailer.name}.to_sentence On Sep 12, 8:31 pm, yachtman <[EMAIL PROTECTED]> wrote: > How could I use a hash with '.to_sentence'.  I don't have set > variables, and I don't know how many I'll ha

[Rails] Re: Mysterious spaces in output

2008-09-12 Thread Xavier Noria
On Fri, Sep 12, 2008 at 2:30 PM, yachtman <[EMAIL PROTECTED]> wrote: > > What a nice nugget! Could you enlighten me as to what the %w does? It is shorthand for ['foo', 'bar', 'baz']. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Rails] Dealing with nil relation

2008-09-12 Thread Pål Bergström
I have a person table and a relation to a table for absents. When listing absents I get the name by the relationship and the person_id. But now I get an error because the person is deleted. How do I check if a relation is missing? -- Posted via http://www.ruby-forum.com/. --~--~-~--~

[Rails] Re: jquery slider

2008-09-12 Thread Felipe Vergara
Solved i did it with jquery ajax request method get! On Wed, Sep 10, 2008 at 3:53 PM, Felipe Vergara <[EMAIL PROTECTED]>wrote: > > a have a jquery slider a save the final values of the selection in > javascript variables rank_1, rank_2, rank_3 > I need to give this values to a controller how can

[Rails] Re: Dealing with nil relation

2008-09-12 Thread Thorsten Müller
you can check for nil of course... eg: <%= @absent.person.name if @absent.person %> But that is weak db/model design. -Either don't allow deletion of persons and use an is_active flag instead, (most likely the best way to handle this) - or make sure that if you delete a person all related reco

[Rails] Thank you

2008-09-12 Thread David Liwoch
Thank you allot people. Currently i've disabled the integration of mobile vs email field checking. They just can't login without the correct format at the time beeing. And they'll never recieve a password if they didnt register with a legit email anyhow. I've been punking my self a bit for tryin

[Rails] Senior Technical Architect – Minimum 8 – 10 years experience

2008-09-12 Thread [EMAIL PROTECTED]
We have Senior Technical Architect requirements for one of our client in Bangalore. Details are given below. We are looking for candidates with 8-10 years of experience. Experience in designing and developing Social Networks. This person should be an expert in web based technologies (mostly o

[Rails] Re: migrate my rails app from v=1.1.6 to v=2.0.1

2008-09-12 Thread Frederick Cheung
On 12 Sep 2008, at 12:32, Raju Aralikatti wrote: > > hi all, > We have a very big application, We started coding in rails 1.1.6, > Now we > want to migrate our rails application from the older 1.1.6 version to > the latest released version, Can anyone please give me instructions in > doing so,

[Rails] Monitoring my production application

2008-09-12 Thread Roberto Druetto
Hi everybody, I'm running different rails applications in a production environment and I saw that the memory used by mongrels is increasing every day. What can I do to monitor this memory increasing? (the applications seems also to be very slow). Since I've been started my busiest application, e

[Rails] Problem using "rake gems:*" with mongrel_cluster, ruby-oci8, and sqlite3-ruby

2008-09-12 Thread Mike DeLaurentis
I'm having trouble using the environment.rb file to manage my gem dependencies for certain gems. For example, I added "config.gem mongrel_cluster" to my environment.rb file, and then installed it through "rake gems install", and it seemed to work fine: + sudo rake gems:install Password: (in /hom

[Rails] Nested observe_field and IE

2008-09-12 Thread Iwan Buetti
Hello, Inside a view i have a list of nations, the drop-down is "observed" and at any modification of this list an other nested list (with a regions list) will be updated, that is itself observed and that update an other nested list of provinces. When i modify the nation at the beginning the regio

[Rails] The error occurred while evaluating nil.to_sym

2008-09-12 Thread Guillermo Acilu
Hello guys, I've been developing in Ruby for a few months and I am starting to work with Rails. I am having a problem right from the start and I think I am not doing anything wrong. I have performed the following steps: 1. run rails test 2. run script/server and it works perfectly connectin

[Rails] Re: Monitoring my production application

2008-09-12 Thread Thorsten Müller
The company which is hosting one of our sites has installed a system called Munin, which monitors a lot of information like memory usage, logins, registrations, number of up/downloads and so on. It's great. Sorry, that I can't give you much information about it, since, as mentioned, it wasn't ins

[Rails] Locale model to store language value not working

2008-09-12 Thread Jalbert Lévesque
hi I have a problem to store the current locale (language) used by a user . I have this model that represent the locale: class LocaleModel < ActiveRecord::Base @@global_locale = nil def self.global @@global_locale end def self.global=( locale ) if locale.is_a? Locale @@g

[Rails] Re: The error occurred while evaluating nil.to_sym

2008-09-12 Thread Thorsten Müller
this should have a path <%= link_to 'Show', release_notes %> like <%= link_to 'Show', release_note_path(release_notes) %> or whatever you defined in your routes --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on

[Rails] Re: Locale model to store language value not working

2008-09-12 Thread Thorsten Müller
I think you misunderstand what's a global variable in Ruby/Rails It's not storing data between sessions. Whenever a user requests a page, it's reset. You must use the session object to store data between requests --~--~-~--~~~---~--~~ You received this message beca

[Rails] Locale model to store language value not working

2008-09-12 Thread Jalb
hi I have a problem to store the current locale (language) used by a user . I have this model that represent the locale: class LocaleModel < ActiveRecord::Base @@global_locale = nil def self.global @@global_locale end def self.global=( locale ) if locale.is_a? Locale @@g

[Rails] Re: Locale model to store language value not working

2008-09-12 Thread Frederick Cheung
On 12 Sep 2008, at > > def change_locale > LocaleModel.global = params[:lang] > end > > The problem is that when I change the view or reload the page, the > locale always resets. How come ? Because classes are reloaded between requests in development mode. Fred --~--~-~--~~

[Rails] Re: The error occurred while evaluating nil.to_sym

2008-09-12 Thread Guillermo Acilu
Thanks for your answer. I have not defined anything in the routes yet. If I did not do any changes, shouldn't the generated file work from the beginning? GA On Fri, Sep 12, 2008 at 4:09 PM, Thorsten Müller <[EMAIL PROTECTED]>wrote: > > this should have a path > <%= link_to 'Show', release_not

[Rails] Re: An open source ruby on rails shopping cart

2008-09-12 Thread Rahil Kumar
Hi Robert, Thanks a lot for a very good Shopping cart. I spend the whole day in installation, and finally found out that Netbeans 6.1 has some problems with the old version of Plugin " Gruff" What do you suggest, which version shall i use, since i am working on 2.1.1. Every thing works fine

[Rails] Re: An open source ruby on rails shopping cart

2008-09-12 Thread Peter De Berdt
On 12 Sep 2008, at 16:28, Rahil Kumar wrote: > Every thing works fine except this "product pages". > > for any commands in Product page i am getting error as below.. > - > > Missing SourceFile in Products#new > > Showing products/_form.html.erb

[Rails] Re: How to track down never-ending requests

2008-09-12 Thread Srdjan Pejic
Sorry, I wasn't clear. Does it happen on a certain portion of the site or is it pretty random? Also, is it reproducible in development or is it a production issue? If you're at your wits end, you could use before_filter to log any and all hits to controllers and actions. If it your code is OK, the

[Rails] Conditional RJS partial rendering based on request source

2008-09-12 Thread Andrew Edwards
Hi, I'm not sure if this is a problem or just part of doing business with an AJAX based interface. I have a create actions that renders a partial via RJS. page.insert_html :top, 'addresses', { :partial => 'addresses/ address', :object => @address } However, I call this create method from diffe

[Rails] Problem with find_by_sql()

2008-09-12 Thread Gabriele Pecchioli
hi.. I have a question concerning the method find_by_sql().. i wonna to make a query like this: "SELECT category, COUNT(*) FROM tables1" but cannot return anything.. I want to know the correct procedure for the output in view.. In my trials I've found this: ##

[Rails] sort_by issue on multi criterias

2008-09-12 Thread Erwin
HI mates I am trying to sort an array on 2 criterias , one is just in memory accessor, other is a record attribute : I have the following User model : class User < ActiveRecord::Base # name is an attribute in the table attr_accessor :current_distance .. end In my controller, I calcu

[Rails] Re: use date_select to show only Saturdays?

2008-09-12 Thread Christian Rishøj
You could use the CalendarDateSelect plugin [1], and disable everything that's not a Saturday [2]. Christian [1] http://code.google.com/p/calendardateselect/ [2] http://code.google.com/p/calendardateselect/wiki/HowToDisableDates On 11 Sep 2008, at 17:51, Mike Whitman wrote: > > I would lik

[Rails] Re: Login system not loading

2008-09-12 Thread Christian Rishøj
Which plugin are you using? Have you included the necessary modules in your User model? Christian On 11 Sep 2008, at 16:50, Gig_gift wrote: > > Hey guys > > I am new to ruby and programming in general. I tried to create a login > system using ruby gems and got this message. Some body help. >

[Rails] Re: sort_by issue on multi criterias

2008-09-12 Thread Erwin
just found a piece of the problem : all_users.sort_by{|user| [user.send('current_distance'), user.name]} seems to work , but how can I set the sort order ? DESC on current_distance et ASC on name thanks On 12 sep, 18:18, Erwin <[EMAIL PROTECTED]> wrote: > HI mates > > I am trying to sor

[Rails] Re: ruby-odbc and OpenEdger 10.1C

2008-09-12 Thread Christian Rishøj
Contact the owner of ruby-odbc: http://raa.ruby-lang.org/project/ruby-odbc/ Christian On 11 Sep 2008, at 15:34, Wtn Tn wrote: > > Hi everyone, > > I am trying to build a rails app with a progress openedge 10.1c > backend > db. > I installed ruby-odbc and tested it with a DSN for mysql and

[Rails] Re: adding items in sent items page

2008-09-12 Thread Christian Rishøj
On 11 Sep 2008, at 14:12, Adolf Charles wrote: > am in the process of developing a small application in which i > want mails to be sent out whenever a customer purchases a > product.mails can now be sent but i cannot see them in my > sent > items page at the moment.

[Rails] Re: Problem with find_by_sql()

2008-09-12 Thread JimCifarelli
Hello Gabriele, Are you sure there is some data to return from the table? Check that the find_by_sql call returns nil or has an array. Why not skip the find_by_sql and use an ActiveRecord calculation method? example: category_counts = MyModelThatUtilizesTables1.count( :all, :group =>

[Rails] Re: SMTPSyntaxError (501 <>: missing or malformed local part

2008-09-12 Thread Anthony Altemara
I had this error when I screwed up the 'recipients XX' line in my mailer model. I had 'recipients = XX' instead of 'recipients XX' I found this by adding some logger.info statements in: /usr/lib/ruby/gems/1.8/gems/actionmailer-2.1.1/lib/action_mailer/base.rb ...in the deliver! met

[Rails] Exclude globalize from action

2008-09-12 Thread PanosJee
Hi everyone, I would like to know if it possible not to load globalize for a specific actions. I try to convert a view to pdf but there are some conflicts in the render_to_string function. So I would like to render the view without Globalize. Is it possible? Unfortunately the action_view of Global

[Rails] Re: Problem using "rake gems:*" with mongrel_cluster, ruby-oci8, and sqlite3-ruby

2008-09-12 Thread Mike DeLaurentis
I figured it out. It's because the configuration was trying to load the mongrel_cluster, ruby-oci8, and sqlite3-ruby libraries through 'require ""'. I needed to specify the name for the library in the environment.rb file, like this: config.gem "mongrel_cluster", :lib => "mongrel_cluster/init" con

[Rails] Re: ActionMailer Don't Say Nuttin'

2008-09-12 Thread Anthony Altemara
Student wrote: > Morning light can do funny things. I was doing smtp_settings= in the > child class, not ActionMailer::Base. > Now I'm getting an smtp authentication error--I expect a typo. Another problem, just in case someone else comes across this thead, (like i did), is when you use :smtp,

[Rails] Re: Senior Technical Architect – Minimum 8 – 10 years experience

2008-09-12 Thread John Adams
So, RoR has been around for about three years, Drupal about five, and Amazon S3 launched at the beginning of 2006. I don't know where you're going to find a candidate with 8-10 years in any of these technologies, and I can only hope that you mean 8-10 years "Industry experience." Dear Rec

[Rails] Toronto Ruby on Rails Project Night Returns Sept. 19th (Seaside, WebVelocity, and ActiveRecord)

2008-09-12 Thread Corina
After a much needed summer hiatus, the Toronto Ruby on Rails Project Night ‘community’ is set to gather again on Friday September 19th at a NEW location: the Rich Media Institute! As some of you may realize, this is a new evening for us. I don’t intend on having our get togethers on Friday, but S

[Rails] Java's long-term problem

2008-09-12 Thread Rob Miller
java's biggest long-term problem, thought you might like this blog post: http://www.pardontheinformation.com/2008/09/javas-biggest-long-term-problem.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:

[Rails] Re: Conditional RJS for :create action

2008-09-12 Thread Neil Cauldwell
Andrew Edwards wrote: > Hi Neil, > > Did you ever get anywhere with this? I've got the same issue, in my > case a create action with multiple possible render options depending > on the page. I've just posted a question about it and then found your > thread. > > At present I've just got to create

[Rails] Re: install question RE:ruby-1.8.6, rubygems-1.2.0, rails, mongrel on redhat 4

2008-09-12 Thread bishop
I resolved this problem. It did not involve the fact that the machine was 64-bit. I had to re-install openssl, before ruby would install well enough to run rails. Here are my steps. [EMAIL PROTECTED] uname -a Linux ???.???.??? 2.6.9-67.0.15.ELsmp #1 SMP Tue Apr 22 13:50:33 EDT 2008 i686 i686 i386

[Rails] Pull from two tables to populate a select

2008-09-12 Thread Shandy Nantz
I need to populoate a drop-down with values from two tables. Currently I have this code which just pulls from one table: <%= select( "hotelmembership", "hotel_id", Hotel.find( :all, :order=> 'name' ).collect {|h| [h.name, h.id]}, { :include_blank => FALSE } ) %> Now I need to pull more data to a

[Rails] Re: Pull from two tables to populate a select

2008-09-12 Thread Pardee, Roy
When you say you need more data--do you mean you've got another table w/rows that should get appended on to bottom of the list your present code produces? Or do you mean you want to e.g., concatenate some additional fields from another table onto each hotel's name? (Either way, consider movin

[Rails] Re: help - mongrel not running on windows, MissingSourceFile

2008-09-12 Thread Brian
Just wanted to say thanks, that fixed it On Sep 11, 7:35 am, nas <[EMAIL PROTECTED]> wrote: > the easiest thing to do is to fool it by changing the name of your > folder C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60 to > C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin32 and

[Rails] Help: A copy of ModelSecurity has been removed from the module tree but is still active!

2008-09-12 Thread Dave Rothlisberger
Hi all, I'm posting this in the hope that someone who understands rails dependencies can shed some light. I've implemented a "ModelSecurity" module in the vein of Bruce Peren's old ModelSecurity plugin (http://rubyforge.org/projects/model- security/). My ModelSecurity module lives in $RAILS_ROOT

[Rails] Tracking Users in a Rails App

2008-09-12 Thread Avishai
Hey everyone, I'm looking to track what my users do in my Rails app. I know that for pageviews, etc. there's Google Analytics, and that's fine, but I'm looking to implement a more robust, user specific way to know what users are doing on the site. It has several social features, and I want to log

[Rails] Order that virtual attributes are processed

2008-09-12 Thread Michael Lavrisha
hello I have a nested resource that needs the id of its parent when it is being created. This parent id is stored in a hidden attribute in the form (we'll call this attribute A). I need this parent id to process the data from another virtual attribute on the same form (attribute B). Currently, a

[Rails] Re: Tracking Users in a Rails App

2008-09-12 Thread rubynuby
have a look at acts as activity logged pls read this message http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/9d880bf4603b33a0/2aac898b7e228462 I hope you can help me figure out how to install it :) On Sep 12, 12:40 pm, Avishai <[EMAIL PROTECTED]> wrote: > Hey everyone, > >

[Rails] Re: Pull from two tables to populate a select

2008-09-12 Thread Abel
Why don't you collect all the data you need in an array or hash and once you are finished, populate the select? On Sep 12, 8:57 pm, Shandy Nantz <[EMAIL PROTECTED]> wrote: > I need to populoate a drop-down with values from two tables. Currently I > have this code which just pulls from one table:

[Rails] association extend rails 2 feature

2008-09-12 Thread Aryk Grosz
I've been looking on the internet for the feature in rails where you can specify an association extend module on the actual class. So for example class Printer < AR::Base some_association_extend_method_that_i_cant_figure_out do def [](value) find_by_name(value) end end end clas

[Rails] restful_authentication rspec failures "Mysql::Error: Incorrect datetime value:"

2008-09-12 Thread scott
I am getting 193 failures that all have "Mysql::Error: Incorrect datetime value:" how do i fix this??? i am new to rspec and restful_auth, so if i am doing something wrong, let me know!!! windows xp rails 2.1.1 rails testproject cd testproject # create my databases and edit database.yml git in

[Rails] template paths and view paths with namespaced controllers?

2008-09-12 Thread Danimal
Hello! So I've got a confusing situation... I've got some controllers namespaced by account types, for example "Buyer" and "Seller". I want to have some controllers in either namespace look in a common directory first for views and then within their namespaced views. I can't figure out how to do

[Rails] Re: template paths and view paths with namespaced controllers?

2008-09-12 Thread Danimal
As added info, it's really not a view path problem, but a template path problem, as I see it. When in a namespace, Rails appends the folder for the namespace to template calls by default. So what I'm trying to do is find a way to override that. I know that I can just do a: render :template => "us

[Rails] Re: utf 8 or something else ?

2008-09-12 Thread Boby Block
where is $KCODE variable in 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 rubyonrails-talk@google

[Rails] getting controller, action, and params for a given path

2008-09-12 Thread Darrik Mazey
Hello, I'm trying to find a programmatic way to get access to the routing table such that I can discover what controller, action, etc., a given path would map to. I could parse the path string myself, but I'd like to be able to access controllers for non-standard routes, named routes, etc.

[Rails] nested XML using REST

2008-09-12 Thread Louise Rains
My Simulation model looks like this: class Simulation < ActiveRecord::Base belongs_to :user has_many :resources has_many :loads has_many :distributions has_many :buffers... My Load model: class Load < ActiveRecord::Base has_many :load_dist_links has_many :distributions, :throug

[Rails] Re: How to track down never-ending requests

2008-09-12 Thread Jack Christensen
Srdjan Pejic wrote: > Sorry, I wasn't clear. Does it happen on a certain portion of the site > or is it pretty random? Also, is it reproducible in development or is > it a production issue? If you're at your wits end, you could use > before_filter to log any and all hits to controllers and actions.

[Rails] Cyrillic letters

2008-09-12 Thread Boby Block
Hello ! I have a simple search form. If i pass the Cyrillic letters true form i can't read them! i'm geting something like q:0LTQuNGa0LA Cyrillic letters from database or directly on html.erb are ok! Please help! Thanks! -- Posted via http://www.ruby-forum.com/. --~--~-~--~~-

[Rails] Re: An open source ruby on rails shopping cart

2008-09-12 Thread Robert
Hi Rahil, Peter is correct. Please get RMagick installed before installing the shopping cart. For more details about RMagick, please check: http://rmagick.rubyforge.org/ Hope this helps. Cheers, Robert On Sep 13, 2:28 am, Rahil Kumar <[EMAIL PROTECTED]> wrote: > Hi Robert, > > Thanks a lot

[Rails] [ANN] New release Lockdown 0.5.21

2008-09-12 Thread Andrew Stone
*About:* http://stonean.com/wiki/lockdown Lockdown is a authentication/authorization system for RubyOnRails (ver 2.x). Lockdown operates on the principal of restrict all access unless access has been defined. Another difference with Lockdown is that instead of your security rules being defined i

[Rails] Ruby Pages Not Updating

2008-09-12 Thread Andrew Krause
I am a complete beginner to Ruby. I followed the tutorial to create my own scaffold called Books. My problem is that, when I make changes to its index.html.erb, the http://url/books page does not update for a few minutes. I am using a development environment, and the config.action_controller.perfo

[Rails] Setting up RoR with Postgresql ---heeellpp!

2008-09-12 Thread Lou Mann
Hi there, I've been trying for a few hours now to get RoR and postgresql talking - but I'm very confused about what's going on (I'm running windows btw). I haven't created a database in postgresql (I'm assuming that RoR will do that?) my database.yml looks like this: production: adapter: ruby

[Rails]

2008-09-12 Thread David
Do you know of any way for me to stick a meta tag in using a before_filter or after_filter or around_filter? I have been trying to figure out out and just cannot make sense of it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

[Rails] Re: Ruby Pages Not Updating

2008-09-12 Thread Matt Stone1
Hi Andrew, It sounds more like your browser could be caching things. But to be sure rails is not caching anything, go to the terminal or command window where you are running your server, stop it with control-c then clear the cache like so.. for unix/mac rm tmp/cache -rf for windows del tmp\c

[Rails] Re: HELP: sends my id as my action

2008-09-12 Thread chris
hey. thanks for the reply. my routes.rb does contain: map.resources :categories. i'm not sure how i would use a form_for in place of the form_tag. if you look at my form_tag line of code, it reads: <%# form_tag(params[:id].blank? ? {:action => 'create'} : {:controller => 'categories', :action

[iklan-indonesia] PENTING !!! CARA MENCETAK UANG DENGAN CERDAS

2008-09-12 Thread E Febrianto
Salam Financial, Apakah Anda Serius Ingin Mendapatkan Pasive Income ? Dapatkan EXTRA PASIVE INCOME Untuk Kebebasan FINANSIAL ANDA, Tanpa harus dipusingkan soal Pekerjaan, Tanpa Perlu Rekrut Downline, Tanpa Perlu Jaringan dan Tanpa Perlu Berjualan ! UANG ANDA BEKERJA UNTUK ANDA ! Berapa Nilai

Rebutlah peluang emas ini..rm2000 masuk terus ke dalam akaun bank anda..

2008-09-12 Thread missxx 2008
Rebutlah peluang emas ini..rm2000 masuk terus ke dalam akaun bank anda.. Usah risau pasal modal yang besar..kami sedia mambantu anda... Kini modal hanya rm97 permulaan yang kecil tapi anda mampu mendapat pulangan yang berganda.. IKUTILAH CARA DAN LANGKAH MENJADI FOREX TRADER, Penerangan bermula dar