[Rails] Re: git

2009-12-28 Thread pepe
Thanks guys, All pages have been bookmarked. I appreciate all the insight. On Dec 28, 9:15 am, Rick DeNatale rick.denat...@gmail.com wrote: On Mon, Dec 28, 2009 at 12:02 AM, pepe p...@betterrpg.com wrote: Sorry if this is not the appropriate forum for the question. How long does it take

[Rails] Re: Best payment method in Rails

2009-12-28 Thread pepe
and is used by most/many Rails developers? It sure would be nice to know. We are looking for info, that's all. conrad: Thanks for the comments and the links. They are appreciated. On Dec 28, 1:59 am, Marnen Laibow-Koser li...@ruby-forum.com wrote: pepe wrote: Marnen, the same could be said

[Rails] git

2009-12-27 Thread pepe
Sorry if this is not the appropriate forum for the question. How long does it take to get used to using git? I have never used a version control system and I don't want to go through the pain much longer. Thanks in advance. Pepe -- You received this message because you are subscribed

[Rails] Re: Best payment method in Rails

2009-12-27 Thread pepe
Marnen, the same could be said, for example, for anybody asking for information about how to create a PDF document in a Rails application. A PDF document has nothing to do with Rails but it can be created using Rails. It is just nice to get answers when you don't really know where to even start

[Rails] Re: git

2009-12-27 Thread pepe
to look at the git website for documentation and tutorials.http://git-scm.com/documentation Regards, James On 28/12/2009 6:02 p.m., pepe wrote: Sorry if this is not the appropriate forum for the question. How long does it take to get used to using git? I have never used a version control

[Rails] Re: Dynamic configuration of ActionMailer

2009-12-11 Thread pepe
Will play with it. Thanks a lot. :) On Dec 11, 2:53 am, Kristian Hellquist kristian.hellqu...@gmail.com wrote: 2009/12/11 pepe p...@betterrpg.com: Thanks Kristian. I've thought about this and what I would probably do is store the information for ActionMailer in a YAML file. Getting

[Rails] Re: Dynamic configuration of ActionMailer

2009-12-10 Thread pepe
I'm sorry, I meant 'restart the web server' instead of 'restart the web service'. My apologies. On Dec 9, 6:06 pm, pepe p...@betterrpg.com wrote: Hello, I have the task of making ActionMailer configurable by a user and be able to use the new configuration without the need to restart the web

[Rails] Re: Dynamic configuration of ActionMailer

2009-12-10 Thread pepe
Thanks Kristian. I've thought about this and what I would probably do is store the information for ActionMailer in a YAML file. Getting the data is not a problem, the problem is how to make ActionMailer use the changed configuration without restarting the web server. If I am not mistaken if the

[Rails] Dynamic configuration of ActionMailer

2009-12-09 Thread pepe
. Is there a way of making the configuration dynamic? Thanks in advance Pepe -- 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 this group, send email

[Rails] Re: Active Scaffold Without Database connection --- Help

2009-11-09 Thread pepe
I'll second Marnen's idea. With a DB you'll get random access to any record. Using a CSV you'll either have to read record by record until you find what you need or dump everything to an array or hash and then get it from there. I think it's actually more work going the CSV approach. On Nov 9,

[Rails] Online Web Calendar

2009-10-30 Thread Pepe Sanchez
Hi all, Is there an apllicaiton that allows to handle an Online Web Calendar, similar to the TaDalist.com? Regards -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby

[Rails] Re: Subida de video en produccion

2009-10-29 Thread pepe
No estoy seguro porque soy lo más lejano a un experto que se pueda encontrar en el tema de configuraciones pero huele a que tienes algún timeout setting con un límite de alrededor de 60 segundos. On Oct 29, 10:22 am, Laura Cordoba rails-mailing-l...@andreas-s.net wrote: Hola, tengo un problema

[Rails] Re: What is the future of Ruby on Rails? MySQL? Compare with Java, MS SQL or Oracle?

2009-10-29 Thread pepe
In my opinion de future of RoR is brilliant. It does certain things much better than other environments. Ruby is extremely powerful and flexible, which translates into an extremely powerful and flexible framework: Rails. Java is a great language and incredibly robust for certain things but for

[Rails] Re: Rails+php? or Rails+Perl? or Rails+Phython?

2009-10-27 Thread pepe
The only reason I would see for doing something like this is if there were something that one of the platforms offers that the other one does not have or if doing something in one of the platforms is so much easier that it would be a waste of time trying to duplicate it in the other one. My

[Rails] Re: Filtering routes based on format

2009-10-20 Thread pepe
and redirect to an error page, I guess. Pepe On Oct 20, 11:22 am, mattwynne matt.wy...@gmail.com wrote: Hi, We've had some requests though for nonsense URLs which have slipped through to our controllers and caused ActionView::MissingTemplate exceptions. They're from URLs like     /artists/123

[Rails] Re: How to exit rails application from within

2009-10-14 Thread pepe
I don't think you'll be able to do that. I am assuming that you mean the user being able to kill the application. Remember that the user will probably be removed from the server that runs Rails and he/she won't have access to it. That access is only available through the browser. The only way

[Rails] Re: How to exit rails application from within

2009-10-13 Thread pepe
What do you mean by restarting the application? Do you mean end the session (if any) and (re)display the login/index/initial page? If you need to end a session you can do it with this: reset_session To send a user to the login/index/initial page you can just use a redirect: redirect_to

[Rails] Re: Inheriting from ActiveRecord::Base with no DB table

2009-10-04 Thread pepe
://www.scrumpad.com On Oct 4, 12:21 pm, pepe p...@betterrpg.com wrote: Hi. I need to upload a CSV file in my application and I am trying to do so with a sample I found googling around, which defines a model that inherits from ActiveRecord::Base. The problem I am having is that whenever

[Rails] Inheriting from ActiveRecord::Base with no DB table

2009-10-03 Thread pepe
that there is no table behind the model? And if that is not possible, is there a way to instantiate an ActiveRecord::Errros object inside the class without inheriting from ActiveRecord::Base and make it work the same way as it usually does? Thanks. Pepe --~--~-~--~~~---~--~~ You

[Rails] Re: ActiveRecord Question: Disabling Boolean Emulation

2009-10-01 Thread pepe
I believe you can do that in the adapter itself. You should be able to find it under your activerecord folder (in my PC: C:\ruby\lib\ruby\gems \1.8\gems\activerecord-2.2.2\lib\active_record\connection_adapters \mysql_adapter.rb). Look for class MysqlAdapter AbstractAdapter in the code and you'll

[Rails] Re: uninitialized constant

2009-09-29 Thread pepe
Here it is: http://adityakircon.blogsome.com/2009/05/07/how-to-install-actionwebservice-in-rails-2/ On Aug 25, 5:54 am, Sushrut Sathe rails-mailing-l...@andreas-s.net wrote: API-  hello_message_api.rb. class HelloMessageApi ActionWebService::API::Base   api_method :hello_message, :expects =

[Rails] Re: uninitialized constant

2009-09-29 Thread pepe
I am running into issues as well. I believe this is due to the fact that Rails stopped providing SOAP support at 2.0 and doesn't do any longer the 'behind the scenes' thing it used to do for SOAP. I found a post that explains how to get ActionWebService to work again with SOAP but I lost the

[Rails] Re: Adding record in database table

2009-09-29 Thread pepe
If you don't want to create a model you can use straight SQL with ActiveRecord::Base.connection.execute. I would create the model, though. It would be the hell of a lot simpler and cleaner. On Sep 29, 5:37 am, Tushar Gandhi rails-mailing-l...@andreas-s.net wrote: Hi, I have a question that Is

[Rails] Re: Determine type in polymorphic relation

2009-09-23 Thread pepe
I'm not sure of what you need to do but I'll assume that you just want to create an association between a person and a vehicle of type car or truck (or whatever). I am assuming that you have STI built into your vehicles table, with a column named 'type' that stores the type of vehicle

[Rails] Re: ActiveRecord::StatementInvalid (invalid date) with Oracle

2009-09-23 Thread pepe
I don't know if this could help but I had kind of a similar problem at one point. After much research I ended up coming across a solution by which you can modify in your model the value returned from the DB. You have to override the reader method (code below). This worked for me only when reading

[Rails] Re: Validation fails but objects seems to have the values

2009-09-22 Thread pepe
Could it be that the DB itself ha constraints you're not thinking of? For example, not nullable fields that are getting a null. Are you using a bang method (save! or create!)? If you're not, change it at least for testing, it will most likely make the app. raise an error and might be very

[Rails] Re: partial wont render .html.erb

2009-09-20 Thread pepe
My guess is that your syntax is incorrect and you are missing the name of the partial to render itself and also either the :object or :collection symbols. This is from the documentation to rendering partials, in case it helps: # Renders the same partial with a local variable. render

[Rails] Re: Calculating business day

2009-09-20 Thread pepe
Sorry, I should also have added to take a look at ActiveSupport::CoreExtensions::Numeric::Time, which allows something like 1.week.from_now, 1.week.ago, etc. On Sep 19, 6:32 pm, pepe p...@betterrpg.com wrote: For the holidays you are going to need to store them somewhere as was already pointed

[Rails] Re: Calculating business day

2009-09-19 Thread pepe
For the holidays you are going to need to store them somewhere as was already pointed out in another post since they might even vary by company. Calculating the weekend days should be easy using the extended functionality for dates that Rails offers. You can check the

[Rails] Re: Inheritance problem on site5

2009-09-18 Thread pepe
Did you try to change the environment in your computer from development to production and run the application that way? Maybe the problem is seeing only in production mode and you can reproduce it. On Sep 17, 9:08 am, Cyril Lavedrine lavedrine.cy...@gmail.com wrote: Hello, I've uploaded my

[Rails] Re: Recent Script.aculo.us tutorial

2009-09-18 Thread pepe
If you have the time get a copy of the book Ajax on Rails (O'Reilly). It's excellent. On Sep 16, 1:35 pm, Patrick Doyle wpds...@gmail.com wrote: I would like to add a visual effect to one of my web pages and in the stage where I don't know what I don't know.  I've talked to my buddy Google

[Rails] Re: 2 submit buttons, how to identify which pressed in the controller?

2009-09-16 Thread pepe
If you have built your form from an instance variable you can get the screen values back into an object with: @my_object = MyClass.new(params[:my_object]) Then render the view and you should be done. On Sep 16, 9:10 pm, Matt mattbog...@gmail.com wrote: Thank you all for your reply. The

[Rails] Re: Opening a new page

2009-09-13 Thread Massimiliano Pepe
hi, add :target = blank, or take a look at www.agilente.eu. This is my site and in the articles all external links use a js to pop up a new window to be xhtml strict compliant. On Sep 13, 1:38 am, MS999 msefar...@gmail.com wrote: Hi, How do you add a new line using RoR? What do I need to add

[Rails] belongs_to + create_* = rails vs. console behavior difference = confused Pepe

2009-09-13 Thread pepe
Hi, I have been battling something for a good hour and a half and finally realized how to 'solve' the issue but I am very confused as of why I should do what I just did. I have 2 classes: class User has_many :audits ... end class Audit belongs_to :user ... end The way things need to

[Rails] Re: Recommend an open-source RonR to sreate surveys

2009-09-07 Thread Pepe Sanchez
http://itsignals.cascadia.com.au/?p=12 -- 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: Recommend an open-source RonR to sreate surveys

2009-09-07 Thread Pepe Sanchez
http://railsforum.com/viewtopic.php?id=12787 -- 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: Recommend an open-source Ruby on Rails E-Commerce

2009-09-06 Thread Pepe Sanchez
What about substruct? Rails Girl wrote: Spree and Ecom. Both are good. -- 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

[Rails] Recommend an open-source RonR to sreate surveys

2009-09-06 Thread Pepe Sanchez
Hi all I am looking for any template or application that will help me setting up a survey for statistical analysis thanks -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Rails] Recommend an open-source Ruby on Rails E-Commerce

2009-09-05 Thread Pepe Sanchez
Hi all Could you please recommend an open-source Ruby on Rails E-Commerce? Something that I can use as a framework, or as a template to build an e-store thanks j -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because

[Rails] Re: validates_preence_of :name

2009-09-03 Thread pepe
pass this? What is this? Pepe On Sep 3, 1:02 am, Sijo Kg rails-mailing-l...@andreas-s.net wrote: Hi    I have a name field And it has no validation And when I update that field with this !...@#$%^*()_+|}{:?,./;'[]\ It gives error /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib

[Rails] Re: Active Records - multiple connections question

2009-09-03 Thread pepe
The optional question should be pretty easy to solve. ActiveRecord::Base has a method called 'connected?'. I am not that experienced with multiple connections, though, so I'd rather let somebody else give you an more intelligent answer than I would. Pepe On Sep 3, 1:32 am, Marc Hoeppner rails

[Rails] Re: Unable to install rails

2009-09-03 Thread pepe
Have you tried Instant Rails? http://rubyforge.org/projects/instantrails/ Pepe On Sep 3, 6:37 am, 1337 94m3r 133794...@gmail.com wrote: I have ruby installed, and also apparently gems installed. I tried doing gem install rails I also have tried downloading the gem and then installing

[Rails] Re: Replacing

2009-09-02 Thread pepe
Check String#gsub! at http://corelib.rubyonrails.org/ Pepe On Sep 1, 9:12 am, prashanth hiremath prashanthhirema...@gmail.com wrote: I want to replace nbsp to amp in xml file can anybosy help me Regards Prashanth --~--~-~--~~~---~--~~ You received

[Rails] STI - Validating 'type' value solution

2009-09-02 Thread pepe
In case this is of use to anybody here is what I did to use STI and validate the contents of column type... I have a users table with a column named 'type' to implement STI and. The Admin should be the only one being able to maintain the table. My model was running validations on the contents of

[Rails] Re: Rails app going nuts at 100% cpu

2009-08-22 Thread pepe
I've been reading all along but had nothing to offer to help. I'm very glad you got it solved. :) On Aug 21, 11:22 am, Fernando Perez rails-mailing-l...@andreas-s.net wrote: Hi, I finally solved my problem. It was a regular expression that failed on a specific URL which locked the process! I

[Rails] Re: Method not found Error page

2009-08-19 Thread pepe
Read about routes. I'm not an expert but I remember reading about being able to set a default 'catch all' to redirect wherever you want. Pepe On Aug 19, 12:13 am, brianp brian.o.pea...@gmail.com wrote: Hey, I was wondering. If someone travels to a url ie. app.com/controller/method

[Rails] Re: How can I pass Ruby object to another action?

2009-08-05 Thread pepe
How about saving the object in a session value? session[:my_object] = my_object/@my_object The next action could just retrieve it easily: my_object/@my_object = session[:my_object] Pepe On Aug 5, 4:57 am, Zhao Yi rails-mailing-l...@andreas-s.net wrote: I use form_tag like below

[Rails] Re: for - next loop

2009-07-29 Thread pepe
I'd bet I'm not the only one waiting to see your beautiful code. ;p Pepe On Jul 29, 4:18 am, Rakoth rakot...@gmail.com wrote: difficult to provide anything more ugly for tax in @taxes   next if ! (tax.taxauthid === [ 24, 25, 26, 27, 36, 37, 38, 39])   print tax.taxamount

[Rails] Re: Deployment on Dreamhost - Application Error

2009-07-13 Thread Pepe Junty
Marnen Laibow-Koser wrote: Like what? I confess that I'm extremely hard-put to think of a mySQL feature that PostgreSQL doesn't have. (Syntax is sometimes different, but you probably shouldn't be writing literal SQL in a non-portable way in Rails.) fulltext search. each database or

[Rails] Re: Associations - Better solution?

2009-07-13 Thread pepe
. Pepe On Jul 12, 4:35 pm, Frederick Cheung frederick.che...@gmail.com wrote: On Jul 12, 3:43 pm, pepe p...@betterrpg.com wrote: When a user is retrieved for access and functionality validations, I re-retrieve the user through the specific user class as in:   user = User.find

[Rails] Re: Associations - Better solution?

2009-07-13 Thread pepe
route because I was it was shorter and easier than anything else I could think of. If there is a better way of doing this I'd appreciate a comment on it. Thanks to all. Pepe On Jul 12, 10:43 am, pepe p...@betterrpg.com wrote: Hi all, I found what I think is a slick solution to a problem of mine

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

2009-07-12 Thread pepe
Another approach to checking for emptyness in case you need it: Table.count.zero? On Jul 10, 11:53 am, melomane meloman...@gmail.com wrote: Hi In my web application,  a table must have only one record. So when there is no record, user can add a new row to the table, (a add link is shown)

[Rails] Associations - Better solution?

2009-07-12 Thread pepe
= user.category.capitalize.constantize.find(user.id) if user From that moment on I have the user retrieved through its correct type and my associations work wonderfully. Is there a better way of making this work? Thanks. Pepe --~--~-~--~~~---~--~~ You received

[Rails] Re: Associations - Better solution?

2009-07-12 Thread pepe
Thanks a lot. I'll play with it. :) Pepe On Jul 12, 11:14 am, Älphä Blüë rails-mailing-l...@andreas-s.net wrote: Users:   id   category # can be either 'ADMIN', 'AUDITOR' or 'TENANT' Audits:   id   auditor_id   tenant_id Looking at this original Table format you have two

[Rails] Re: Deployment on Dreamhost - Application Error

2009-07-10 Thread Pepe Junty
heroku seems very nice, i was about to deploy an app there to check it out but they do not support mysql. :( -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails:

[Rails] Re: Deployment on Dreamhost - Application Error

2009-07-10 Thread Pepe Junty
Marnen Laibow-Koser wrote: Shouldn't matter. Most Rails apps are DB-neutral enough that Heroku should support them just fine. this particular app uses mysql specific features. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this

[Rails] Re: Deployment on Dreamhost - Application Error

2009-07-09 Thread Pepe Junty
Tony Stricker wrote: my boss asked me to make some web forms for us to sign up new affiliates and customers with - i made the decision to learn rails on my own. as an intern, i'm given a lot of freedom which i couldn't be more grateful for. the web forms weren't urgent, and i was looking

[Rails] Re: Deployment on Dreamhost - Application Error

2009-07-08 Thread Pepe Junty
First off, deployment is not trivial so if you are an intern you should be doing this under the supervision of a more experienced developer/system adm. In other words, your boss made a mistake and assigned you to the wrong position or is deliberately using you as cheap workforce (which

[Rails] Re: How can I check form input before submit?

2009-07-01 Thread pepe
with Javascript. Pepe On Jun 30, 8:37 pm, Zhao Yi rails-mailing-l...@andreas-s.net wrote: I want to check user input in a form before submit. Is there a standard way to do this in Rails? -- Posted viahttp://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received

[Rails] Re: before_create return value breaking object.save: rails bug?

2009-06-12 Thread pepe
are thankful for that 'feature'. It saves us a lot of $$ in gas and possibly stops countless accidents. My 2 cents. Pepe On Jun 12, 11:43 am, Max Williams rails-mailing-l...@andreas-s.net wrote: Matt Jones wrote: On Jun 11, 12:07 pm, Max Williams rails-mailing-l...@andreas-s.net wrote: argghh

[Rails] ActiveRecord not as smart as I thought it would be? or is it me?

2009-05-31 Thread pepe
' or 'production', depending on which DB I was using. I thought that Rails would 'know' which DB to use. Am I wrong? Should I have added any type of setup value in 'environment.rb'/other place to avoid all this? Thanks. Pepe --~--~-~--~~~---~--~~ You received

[Rails] Re: ActiveRecord not as smart as I thought it would be? or is it me?

2009-05-31 Thread pepe
', :user = 'my_user' ) in the model and no :ube declaration in database.yml As I understand using 'establish_connection' by itself would connect me to the 'current' DB, wouldn't it? Thanks. Pepe On May 31, 11:59 am, Maurício Linhares mauricio.linha...@gmail.com wrote: Stupid question, did

[Rails] Re: ActiveRecord not as smart as I thought it would be? or is it me?

2009-05-31 Thread pepe
So it was ME! :) Thanks a lot Mauricio. As usual, it was so much simpler than I thought. Works like a charm. Thanks! Pepe On May 31, 5:17 pm, Maurício Linhares mauricio.linha...@gmail.com wrote: Here's how it would look like: class YourModel ActiveRecord::Base     establish_connection

[Rails] ID not primary key with not unique values

2009-05-26 Thread pepe
, which I already know would work? ruby: 1.8.6 rails: 2.3.2 Database: Oracle 10g Thanks. Pepe --~--~-~--~~~---~--~~ 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] Legacy DB and id issue

2009-05-22 Thread pepe
not use SQL, which allows me to create the records the way I need. Thanks a lot. Pepe --~--~-~--~~~---~--~~ 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: Legacy DB and id issue

2009-05-22 Thread pepe
Corrections: If I change the primary key description in the model and specify the column ID (self.primary_key = 'id') I can assign values to ID, the model shows the values I entered but they are overridden anyway by the DB. Pepe On May 22, 9:12 pm, pepe p...@betterrpg.com wrote: ruby: 1.8.6

[Rails] Re: Session id length in sessions table

2009-05-05 Thread pepe
in the field and no more, so 'extra empty space' is not wasted. In other words, I think you should be fine, especially if you clean up session information as sessions expire. Pepe On May 5, 3:42 am, Joshua Partogi joshua.j...@gmail.com wrote: Dear all, I just created session with rake

[Rails] Re: ActiveRecord::Base.establish_connection loads once?

2009-05-01 Thread pepe
be wrong, though. I am not a Rails expert. Since you are going to be trying to create the connection from a Ruby program your program will be able to replace your variables with values so my guess is that yes, you can do it. Have you tried? Pepe On Apr 30, 4:41 pm, elioncho elion...@gmail.com

[Rails] session values not being stored

2009-04-28 Thread pepe
made the application magically work. Thanks a lot guys. Pepe --~--~-~--~~~---~--~~ 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

[Rails] Weird auto-complete production problem in Rails 2.3.2

2009-04-26 Thread pepe
and everything is identical except for the field names. Controller code does not seem to be a problem either. Checked logs and I can't see anything obviously wrong either. Searched the web but found nothing. Any help would be appreciated. Thanks a lot. Pepe

[Rails] Re: Weird auto-complete production problem in Rails 2.3.2

2009-04-26 Thread pepe
in session variables and I have read that there are changes as how sessions behave with 2.3.2. Any ideas what might be going on? Thanks a lot. On Apr 26, 8:43 am, pepe p...@betterrpg.com wrote: Hello. ruby 1.8.6 (patchlevel 111) rails 2.3.2 Windows XP Professional I am getting quite a weird

[Rails] Re: Weird auto-complete production problem in Rails 2.3.2

2009-04-26 Thread pepe
expert. Thanks On Apr 26, 9:41 am, pepe p...@betterrpg.com wrote: Still trying to figure this out. Some more info: The auto-complete field that does not work depends on the values entered in 2 other auto-comple fields. In development the 2 fields are being updated correctly but not when

[Rails] Re: Weird auto-complete production problem in Rails 2.3.2

2009-04-26 Thread pepe
the session variables I store those values in work fine and contain data but when I change to production those session variables are not being updated. I am using one controller only, if that means anything. Thanks. On Apr 26, 7:19 pm, 7stud -- rails-mailing-l...@andreas-s.net wrote: pepe wrote

[Rails] Re: find_by_sql

2009-04-26 Thread pepe
= elevator_timeslots.id and elevators.booked_date = ?), params[:booked_date]]) Now you have an array (between the square brackets) and the value of the second element (params[:booked_date]) will replace your question mark. Pepe On Apr 26, 11:48 am, Darren Strom rails-mailing-l...@andreas-s.net wrote

[Rails] Re: Upgrading from Rails 1.3.x to 2.3.2 - text_field_with_auto_complete not working

2009-04-19 Thread pepe
I had to do the same and for me it worked with no problem. Have you tried to restart WEBrick/Mongrel/other? Pepe On Apr 18, 11:04 pm, Rajat Garg raja...@gmail.com wrote: Folks, I am trying to upgrade code base from 1.3.x to 2.3.2 and not surprisingly, lot of things are broken

[Rails] Re: How can I forward to different pages for different account

2009-03-27 Thread pepe
executed. That is the reason you should use return, as the rest of the posts suggest. Good luck. Pepe On Mar 24, 9:23 pm, Zhao Yi rails-mailing-l...@andreas-s.net wrote: My web site has a login feature. What I want to do is to design different page for different account. But in an action, I

[Rails] Re: validation for a non active record input field

2009-03-22 Thread pepe
Hi there, I've never done something like that but I can imagine you could do the validation in your controller. When the action is invoked you can check the values received in the params hash and act accordingly. Pepe On Mar 21, 12:42 pm, Rails List rails-mailing-l...@andreas-s.net wrote

[Rails] undefined method 'define_a_column' for class 'OCI8::Cursor'

2009-03-21 Thread pepe
start Mongrel (ruby script/server) I get the error above. I've looked everywhere I can think of. Any ideas what might be happening? Thanks a lot. Pepe --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] Re: undefined method 'define_a_column' for class 'OCI8::Cursor'

2009-03-21 Thread pepe
Never mind. I installed oci8 as a gem and it seemed not to like it. I uninstalled the gem and then donwloaded the version that needs to be installed by running a ruby program and now everything is happy. Sorry for the interruption. Pepe On Mar 21, 10:29 pm, pepe p...@betterrpg.com wrote

[Rails] Re: Who are the ROR guru's on this board ?

2009-03-17 Thread pepe
Fred Cheung. Most helpful. Pepe On Mar 17, 2:38 am, Cwi Tech guy rails-mailing-l...@andreas-s.net wrote: Hi,   I am looking for the most knowledgeable ROR developers on this board. In your opinion, who are the most knowledgeable and helpful users on this board? I am offering a free 1 year

[Rails] Looking for Ruby on Rails applications for a demo

2009-03-16 Thread Pepe Sanchez
Hi all, I am looking for most popular ruby on rails applications that are currently implemented, and also who is using RoR to build new applications Thanks -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are

[Rails] Re: como consultar en oracle

2009-03-04 Thread pepe
usuario) y cuántos registros hay en cada página. Con esos dos datos puedes seleccionar los registros que necesites de tu completo resultset y generar la página con ellos. Espero que esto te ayude. Pepe On Mar 3, 5:14 pm, Oraldo alarcon rails-mailing-l...@andreas-s.net wrote:   como esta la cosa amigo

[Rails] Re: table lock

2009-03-02 Thread pepe
This is a MySQL page where it talks about table locking: http://dev.mysql.com/doc/refman/5.0/en/lock-tables.html Pepe On Mar 2, 9:59 am, Vetrivel Vetrivel rails-mailing-l...@andreas- s.net wrote: Frederick Cheung wrote: On 2 Mar 2009, at 10:42, Vetrivel Vetrivel wrote: Fred Please

[Rails] Re: Phone format in Rails

2009-03-02 Thread pepe
I'm not sure the type of validation you need on the field. This is something simple I did for an application I wrote: phone =~ /^\d{10}$/ phone.to_i = 9 This will make sure that the string contains only 10 digits (/^\d {10}$/) and that the 10 digits are miningful or the number

[Rails] Re: Phone format in Rails

2009-03-02 Thread pepe
Sorry, made a mistake, the result of number_to_phone would be (123) 456-7890 (I missed the 0). And about the number of digits, I said \d{10} makes sure the string contains only 10 digits. What I meant is that the string will have to contain a total of 10 digits, no more, no less. Pepe On Mar 2

[Rails] Re: Regular Expression question

2009-03-01 Thread pepe
trailing zeros after are always trimmed after a decimal point. Pepe On Feb 28, 6:30 pm, Matt Jones al2o...@gmail.com wrote: There appear to be some good solutions here, but I thought I'd jump in with a bit of non-Rails technical detail. I'd double check with the source of this data

[Rails] Re: Regular Expression question

2009-02-28 Thread pepe
string = '10.0' string.sub!(/\.\d+/, '') This will replace in place (sub!) any dot (\.) followed by at least one number (\d+) with nothing (''). Pepe On Feb 27, 4:37 pm, northband_101 northb...@gmail.com wrote: Awesome - this is a start - I'll take it from here. Thanks! On Feb 27, 4:14 pm

[Rails] Re: Regular Expression question

2009-02-28 Thread pepe
Sorry, I didn't read your first posting fully. My solution will not work for the case of 482.600. Pepe On Feb 28, 10:12 am, pepe p...@betterrpg.com wrote: string = '10.0' string.sub!(/\.\d+/, '') This will replace in place (sub!) any dot (\.) followed by at least one number (\d

[Rails] Re: Regular Expression question

2009-02-28 Thread pepe
OK, got something working you might be able to use. Just to make things more complicated: s = '19.0 / 482.600 mm / 19.060 / 482.600 mm' s.gsub!(/(\.0?[^0])?0+/, '\1').gsub!(/\.[\s\n]/, '') Pepe On Feb 28, 10:13 am, pepe p...@betterrpg.com wrote: Sorry, I didn't read your first posting fully

[Rails] Re: como consultar en oracle

2009-02-27 Thread pepe
siguiéndolo te funciona el tuyo. Pepe On Feb 26, 4:37 pm, Oraldo alarcon rails-mailing-l...@andreas-s.net wrote: hola hermano un saludo fuerte   men me puse a hacer lo que me dijistes pero tampoco funciona medio he resuelto el problema de esta manera sql = autosys_db.prepare(SELECT

[Rails] Re: como consultar en oracle

2009-02-27 Thread pepe
mejor para acciones muy complejas y tus problemas se van a solucionar de golpe. Pepe On Feb 26, 4:37 pm, Oraldo alarcon rails-mailing-l...@andreas-s.net wrote: hola hermano un saludo fuerte   men me puse a hacer lo que me dijistes pero tampoco funciona medio he resuelto el problema de esta manera

[Rails] Re: Modify beginning_of_week?

2009-02-27 Thread pepe
I see 2 ways you could do this 1. Re-open the class that offers the functionality and add your code to modify the behavior. I would not recommend that. I like leaving code that I didn't write as it is. 2. Create something very simple that receives the parameter you need and acts accordingly to

[Rails] Re: Remove trailing zeros

2009-02-27 Thread pepe
Maybe you can convert them to integers? my_float = 2.0 my_float = my_float.to_i if my_float == my_float.to_i Pepe On Feb 27, 1:20 am, northband northb...@gmail.com wrote: Hi - I am working with floats and am wondering how I can trim the decimal and trailing zeros on my whole numbers

[Rails] Re: como consultar en oracle

2009-02-27 Thread pepe
%= mi_tabla.columna1 %/td td%= mi_tabla.columna2 %/td td%= mi_tabla.columna3 %/td /tr % end % /table %= @page.number % %= link_to( Prev, :page = @page.prev.number) if @page.prev? % %= link_to( Next, :page = @page.next.number) if @page.next? % Pepe On Feb 26, 4:37 pm, Oraldo

[Rails] Re: como consultar en oracle

2009-02-22 Thread pepe
environment.rb (al final del fichero): require 'paginator' Espero que ésto te ayude. Buena suerte. Pepe On Feb 21, 11:37 am, pepe p...@betterrpg.com wrote: Lo siento pero no he utilizado nunc la función de paginación en Rails, pero voy a empezar pronto, posiblemente este fin de semana o la semana

[Rails] Re: como consultar en oracle

2009-02-21 Thread pepe
para oracle tu vida sería muchísimo más sencilla. Eso es lo que estoy haciendo yo. Cuando lo utilizas todo resulta mucho más fácil porque puedes seguir las convenciones de Rails. Pepe On Feb 21, 10:01 am, Oraldo alarcon rails-mailing-l...@andreas-s.net wrote: pepe wrote: Hola. Te iba

[Rails] Re: como consultar en oracle

2009-02-20 Thread pepe
Hola. Te iba a responder ahora mismo. Me alegro de que resolvieras el problema. Lo de paginar supongo que te refieres a leer un número determinado de registros? Si es eso me parece que se hace con la palabra limit. On Feb 20, 1:00 pm, Oraldo alarcon rails-mailing-l...@andreas-s.net wrote:

[Rails] Re: como consultar en oracle

2009-02-19 Thread pepe
valores y el código aparece ya utilizando c[0] entonces lo único que te falta es utilizar también c [1] y lo tendrías solucionado. Buena suerte. Pepe On Feb 19, 9:24 am, Oraldo alarcon rails-mailing-l...@andreas-s.net wrote: pepe wrote: Perd n, deber a haber dicho 'cada array interno deber

[Rails] Re: como consultar en oracle

2009-02-18 Thread pepe
el valor en patalla como valor interno. Espero que esto ayude. Pepe On Feb 18, 8:38 am, Oraldo Segundo rails-mailing-l...@andreas-s.net wrote: pepe wrote: Hola A la gente aqu no parece que le guste mucho cuando los mensajes no son en ingl s. Aparte de eso la descripci n de tu problema

[Rails] Re: como consultar en oracle

2009-02-18 Thread pepe
Perdón, debería haber dicho 'cada array interno debería contener...' Pepe On Feb 18, 11:43 pm, pepe p...@betterrpg.com wrote: What is the URL for the Spanish forum? I'll switch to answer there if somebody gives it to me. Thanks. Lo siento mucho pero sigo sin entender el problema. Quizá

<    1   2   3   4   5   >