[Rails] Re: string attributes not showing up in view

2010-06-08 Thread pepe
On Jun 8, 3:10 am, Michael Pavling wrote: >   def full_name >     [first_name, last_name].join(" ") >   end > > ...now, if you're missing a first or last name, you don't get extra > white-space padding (and if you want to include 'title' or > 'middle_name' you're not creating n+1 strings). Never

[Rails] Re: How to add dynamic routes to routes.rb. Worked in rails2 doesn't work in rails3

2010-06-08 Thread pepe
Do you have a typo and 'p.' needs to be replaced with 'page.'? On Jun 7, 1:47 pm, db-- wrote: > I've the following solution for this in rails2 > > In config/routes.rb > > Page.all.each do |page| >   map.connect page.url, :controller => p.controller, :action => > p.action >   #   get page.url + '

[Rails] Re:

2010-06-07 Thread pepe
I don't think there is a method you'll be able to use to generate a tag. There seem to be some compatibility issues with that tag. I guess you have your reasons to be using instead of . In any case, since the call to button_to_remote will just generate a string that will be passed back to the bro

[Rails] Re: Password re-check with authlogic

2010-06-05 Thread pepe
> BTW, I have been looking at how to set in authlogic the configuration > so when a new user is created he/she does not get automatically signed > on and I couldn't find a way to do it yet. In my app. the admin is the > one creating users, the users don't register, so that functionality > must be h

[Rails] Re: Password re-check with authlogic

2010-06-05 Thread pepe
Can't be of help with Authlogic as I am starting to use it too, but about adding errors in the controller, once you have your object instantiated you can do something as simple as: @my_instance.errors.add... BTW, I have been looking at how to set in authlogic the configuration so when a new user

[Rails] Re: How would I create a "tagged domain"?

2010-06-03 Thread pepe
Hi, I don't know if this will help, but have you tried a search on 'permalink'? On Jun 2, 6:48 am, Joe wrote: > Bump (last time)!! > > Can no one help me with this? I really can't figure it out.. > > Please Help, > > Thanks In Advance, > > Joe > > On 31 May, 17:39, Joe wrote: > > > Bump?! Pleas

[Rails] Re: Ruby on Rails + Flash Application ?

2010-06-03 Thread pepe
On Jun 3, 5:56 am, Peter De Berdt wrote: > I might be wrong here, but it seems he's saying: "I don't know any of   > the tools, I've played around a bit with Flash and some Rails   > examples, but I don't know anything. Can you advise me on something   > that will magically get my application done

[Rails] Re: Ruby on Rails + Flash Application ?

2010-06-03 Thread pepe
Just my $.02 from my own experience... If you are in the same situation I usually am in your direction will most likely be decided for you by your boss/client, be it technology, be it tools, be it whatever else. This will probably mean that you will also have deadlines to fulfill. In that case I w

[Rails] Re: ROR Sample applications for training

2010-05-31 Thread Pepe Sanchez
Sure!! Sure!!! tramuntanal wrote: > Hi Pepe, > > Do you want to collaborate with open source projects? > > Regards > > 2010/5/31 Pepe Sanchez : >> To post to this group, send email to rubyonrails-t...@googlegroups.com. >> To unsubscribe from this group, s

[Rails] ROR Sample applications for training

2010-05-31 Thread Pepe Sanchez
Hi all I am currently looking for any ROR sample applciation used for training. I am in the processes of collecting requirements/analyzing/designing a web site that will provide training -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Goo

[Rails] Re: Guide to using SQL Server on Rails (with JRuby, in a Windows environment)

2010-05-26 Thread pepe
> After I played a little bit with the table definition in the DB using > Microsoft SQL Server Mangement Studio Express I realized that the ID > column, although primary key, was not set as IDENTITY column. I > changed that and... nothing! Same error. > > Just for the fun of it I explicitly declare

[Rails] Guide to using SQL Server on Rails (with JRuby, in a Windows environment)

2010-05-25 Thread pepe
First of all many thanks to everybody contributing to solve this problem of mine, especially Nick Sieger, who proposed what ended up being a pretty easy way to making everything work. The original task: I needed to be able to use SQL Server 2005 in a RoR application in a Windows environment. The

[Rails] Re: SQLServer on Rails

2010-05-25 Thread pepe
> > Got the adapter installed (your command was missing the word > > 'install', though) but now I am getting errors. After running this > > command: > > Oops, yes it was. That was an easy fix after I went to http://kenai.com/projects/jruby/pages/GettingStarted from the JRuby main page. ;) > You'

[Rails] Re: SQLServer on Rails

2010-05-25 Thread pepe
NTITY but I think I just figured out how to fix it. When I finish I'll post here what I hope will be an easy guide to using JRuby with SQL Server. On May 25, 10:07 pm, Matt Jones wrote: > On May 25, 10:27 am, pepe wrote: > > > > > On May 24, 8:06 pm, ct9a wrote: > >

[Rails] Re: SQLServer on Rails

2010-05-25 Thread pepe
> The one difference is to "jruby -S gem activerecord-jdbcmssql-adapter" > to install JRuby's SQLServer support. You'll also want to review one > more step outlined here to run the "jdbc" generator: Hi Nick, Got the adapter installed (your command was missing the word 'install', though) but now I

[Rails] Re: SQLServer on Rails

2010-05-25 Thread pepe
Thanks Hassan (and Nick). I am going to see if I can get something running quickly in JRuby. On May 25, 1:47 pm, Hassan Schroeder wrote: > On Tue, May 25, 2010 at 9:40 AM, pepe wrote: > > If I use JRuby, do I need to use GlashFish or can I still use Mongrel > > as my web serve

[Rails] Re: SQLServer on Rails

2010-05-25 Thread pepe
can I just copy the application's folder as I am currently doing? Thanks a lot. On May 25, 12:29 pm, Nick Sieger wrote: > On Tue, May 25, 2010 at 10:54 AM, pepe wrote: > > On May 25, 11:46 am, Nick Sieger wrote: > >> Have you tried using JRuby with activerecord-jdbcmss

[Rails] Re: SQLServer on Rails

2010-05-25 Thread pepe
t; /Nick > > > > On Tue, May 25, 2010 at 9:27 AM, pepe wrote: > > On May 24, 8:06 pm, ct9a wrote: > >> guys, > > >> It's interesting. Did the post below solve the problem? > > > Not for me. I am still working on getting the connection working, &

[Rails] Re: Two RJS visual effects will happen at the same time?

2010-05-25 Thread pepe
I found Ajax on Rails, from O'Reilly, to be an excellent book, if it's any help. On May 24, 9:26 am, Jian Lin wrote: > I was going to change the background of a div from white to red and then > from red back to white, so this is used in an RJS file: > >   page[:vote_score].visual_effect :highligh

[Rails] Re: SQLServer on Rails

2010-05-25 Thread pepe
On May 24, 8:06 pm, ct9a wrote: > guys, > > It's interesting. Did the post below solve the problem? Not for me. I am still working on getting the connection working, although I have not spent too much time on it. I am using SQL Server 2005, though, and I know pretty much nothing about SQL Server

[Rails] Re: Installing gem from source

2010-05-24 Thread pepe
Well, got all the kinks solved and now my application is working just fine. Thanks a lot Fred, without your comments on this and my other thread I don't think I would have made it. On May 24, 2:50 pm, Frederick Cheung wrote: > On May 24, 7:10 pm, pepe wrote:> I need to install th

[Rails] Re: Installing gem from source

2010-05-24 Thread pepe
Fred comes once again to the rescue! :) Thanks buddy. I owe you (another) one. Unfortunately I am running into other problems now but I think I'll be OK after this major (for me) hurdle. On May 24, 2:50 pm, Frederick Cheung wrote: > On May 24, 7:10 pm, pepe wrote:> I need to

[Rails] Re: Installing gem from source

2010-05-24 Thread pepe
being the version you want to change it to. > > On May 24, 2:28 pm, pepe wrote: > > > > > I'm on Windows. The currently installed version of the gem is 1.2.6 > > but that is causing conflicts with actionpack. This is the last step > > to try and solve a conflic

[Rails] Re: Installing gem from source

2010-05-24 Thread pepe
> > this should give you what version of gem you're running on or nothing > at all if you haven't installed gem. > > On May 24, 2:10 pm, pepe wrote: > > > > > I need to install the latest actionwebservice from source. I have > > spent quite a bit of time loo

[Rails] Installing gem from source

2010-05-24 Thread pepe
I need to install the latest actionwebservice from source. I have spent quite a bit of time looking for info on the net and reading books but couldn't find a clear and cut set of instructions about how to do this. This is the first time I try to build a gem from source and I am unsure as how to pr

[Rails] Re: one model with two controller?

2010-05-24 Thread pepe
I don't think controllers have anything to do with your question. A controller is a program that receives requests from the browser and processes them, most likely involving models, and then sends a response back to the browser. What you are talking about, I think, is about activerecord associatio

[Rails] Re: Questionairee's questions - how to show all user's answers? How to update database with ALL user's answers?

2010-05-24 Thread pepe
If I were you I would buy a book or find info on the web and study how activerecord associations work. That will most likely clear all your questions and help you solve the problem. The examples I've read in any of the books I have are very clear. Good books: Agile Web Development with Rails and Th

[Rails] Re: What happens when Rails 1.3.5 is installed on top of 2.3.5?

2010-05-23 Thread pepe
I would, just in case, not being sure of the repercussions that installing a prior version of the gem would have. On May 22, 10:48 pm, Jian Lin wrote: > pepe wrote: > > Just in case it applies here is an extract from the Pickaxe book > > (Second edition, page 217): > > &

[Rails] Re: What happens when Rails 1.3.5 is installed on top of 2.3.5?

2010-05-22 Thread pepe
Just in case it applies here is an extract from the Pickaxe book (Second edition, page 217): "Threre's a subtlety when it comes to installing different versions of the same application with RubyGems. Even though RubyGems keeps separate versions of the application's library files, it does not versi

[Rails] Re: Easy custom validation messages on a per-attribute basis

2010-05-21 Thread pepe
You'll have to separate you attributes: validates_presence_of :name, :message => "Your name error here" validates_presence_of :email, :message => "Your e-mail error here" On May 20, 3:32 pm, Marcelo wrote: > When i do this: > > validates_presence_of :name, :email, :message => "Can't be blank" >

[Rails] Re: URGENT! can't activate actionpack (= 1.13.6, runtime) for ["actionwebservice-1.2.6"], already activated actionpack-2.3.5 for ["rails-2.3.5"] (Gem::LoadError)

2010-05-20 Thread pepe
Thanks again Fred. On May 20, 11:09 am, Frederick Cheung wrote: > On May 20, 3:51 pm, pepe wrote: > > > > as i understand it it's just the 'old' actionwebservice updated to > > > still work with recent versions of rails. You might have to install > >

[Rails] Re: URGENT! can't activate actionpack (= 1.13.6, runtime) for ["actionwebservice-1.2.6"], already activated actionpack-2.3.5 for ["rails-2.3.5"] (Gem::LoadError)

2010-05-20 Thread pepe
> as i understand it it's just the 'old' actionwebservice updated to > still work with recent versions of rails. You might have to install > the gem by hand (get the source, build the gem with gem build > blah.gemspec and then install the resulting .gem file) I'll have to give it a try. Never buil

[Rails] Re: URGENT! can't activate actionpack (= 1.13.6, runtime) for ["actionwebservice-1.2.6"], already activated actionpack-2.3.5 for ["rails-2.3.5"] (Gem::LoadError)

2010-05-20 Thread pepe
rick Cheung wrote: > On May 20, 1:44 pm, pepe wrote: > > > Another post mentioned about getting rid of any actionpack gem higher > > than the one required by actionwebservice but I am afraid that doing > > so will screw up actionsupport and/or activerecord. > > > Below

[Rails] URGENT! can't activate actionpack (= 1.13.6, runtime) for ["actionwebservice-1.2.6"], already activated actionpack-2.3.5 for ["rails-2.3.5"] (Gem::LoadError)

2010-05-20 Thread pepe
Hi guys, I have added consumption of a couple of web services to my application and everything seemed to be going well. That is after yesterday, when I was asked to install whatever I had in a test server that runs in production mode (used also for demos) and when I tested the production environme

[Rails] Re: Design question

2010-05-18 Thread pepe
On May 18, 10:08 am, Sharagoz wrote: > You could argue for and against this kind of abstraction. By factoring > it out you reduce the number of fields in the database, you reduce > repetition, you have a model to put name related logic in if there is > any and it is easier to implement changes in

[Rails] Re: Design question

2010-05-18 Thread pepe
7;s a good idea. Any links to a sample of how to use abstract classes? I've never used them before. Thanks! On May 18, 9:26 am, Ar Chron wrote: > pepe wrote: > > > I have thought about factoring out the name to a separate model: > > Most of this decision depends on

[Rails] Re: Design question

2010-05-18 Thread pepe
Thanks Tim, On May 18, 9:15 am, Tim Lovett wrote: > Are customers different than users? > Can customers also be users? > > I'd say you should probably just put the customers and users table into one. > You can create a table that links off of users that links them to orders > (customers) if the n

[Rails] Re: Design question

2010-05-18 Thread pepe
Thanks Tim, On May 18, 9:12 am, Tim Shaffer wrote: > I think I would just stick with putting those columns on each table. > Is there a specific problem you're trying to solve by abstracting them > out to a separate table? Unless you're trying to remediate a specific > issue, this seems like a sol

[Rails] Design question

2010-05-18 Thread pepe
situation by going this way? Are named scopes going to be my friends? What would be the best/fastest way to query the database with this design? Am I abstracting the DB too much? Thanks Pepe -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk&q

[Rails] Re: SOAP driver question

2010-05-14 Thread pepe
Sorry, "method" meaning "way". Basically I want to create the driver only once, at initialization, so I don't have to every time the web service is used. On May 14, 5:44 pm, pepe wrote: > Hi there, > > I'm consuming a couple of SOAP web services in my appli

[Rails] SOAP driver question

2010-05-14 Thread pepe
Hi there, I'm consuming a couple of SOAP web services in my application. What would be the best method to create the RPC driver only once? Thank you. -- 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 r

[Rails] Re: Integrating hardware with browser

2010-05-05 Thread pepe
Thanks for the input, Marnen. On May 5, 8:23 am, Marnen Laibow-Koser wrote: > pepe wrote: > > Hi Marnen, > > > What are the advantages of using Flex or Java instead? > > Flash, not necessarily Flex.  AFAIK, they have better browser support > than Silverlight. > &g

[Rails] Re: Integrating hardware with browser

2010-05-04 Thread pepe
Hi Marnen, What are the advantages of using Flex or Java instead? Are there any particular tools I should be looking at? I know Java (not a guru, though) but I know nothing about Flash and what it is capable of. Thanks a lot. On May 4, 6:45 pm, Marnen Laibow-Koser wrote: > pepe wr

[Rails] Re: Integrating hardware with browser

2010-05-04 Thread pepe
your help. On May 4, 7:12 am, Frederick Cheung wrote: > On May 4, 5:19 am, pepe wrote: > > > Hello, > > > I've looked high and low and found just 1 post with some information > > about this subject, from 2008, and Google searches turned out pretty > > much no

[Rails] Integrating hardware with browser

2010-05-03 Thread pepe
Hello, I've looked high and low and found just 1 post with some information about this subject, from 2008, and Google searches turned out pretty much no useful information. I would appreciate any help on this. I need to be able to control several devices (card reader, printer, camera, cashier dra

[Rails] Re: List time zones?

2010-04-24 Thread pepe
Maybe this can help: include ActiveSupport TimeZone.all pepe On Apr 23, 10:51 pm, Morgan Morgan wrote: > Is there a way to list the time zones that rails makes available (it > seems to function only on cities)? > > I figured out how to get that list at the command line in rake b

[Rails] Re: Using AR.connection.execute(sql) -- messing with my string?

2010-04-22 Thread pepe
My understanding was that MySQL does not allow multiple statements to be executed in one shot as a means to try and avoid piggy backing and hacking. Could be wrong, though. On Apr 21, 7:52 pm, Fearless Fool wrote: > Frederick Cheung wrote: > > when connecting via activerecord you're using a diffe

[Rails] Re: HOW TO Track How Many Recipients Open Your Mail IN RAILS?

2010-04-22 Thread pepe
as far as I know the user can choose not to send the response anyway. pepe On Apr 22, 12:55 am, Tony Augustine wrote: > HOW  TO Track How Many Recipients Open Your Mail IN RAILS? > > please help me PROVIDE  SOLUTIONS AND  STEPS  OR ELSE  ANY  PLUGIN > -- > Posted viahttp://www.rub

[Rails] Re: Calling destroy on a model that has no id column

2010-04-22 Thread pepe
to' and everything would be handled for you by Rails. pepe On Apr 21, 10:34 pm, Lee Smith wrote: > I've got a model, Favorite, that I'm trying to remove from the > database by calling the destroy method on it.  What's noteworthy about > this model is that it doesn'

[Rails] Re: creating custom form error handling

2010-04-20 Thread pepe
You'll need to write a custom validation, I think, if you want to highlight more than 1 field for a given condition. if end_time < start_time errors.add :start_time, 'your message here' errors.add :start_time, 'your message here' end What I have never tried is to hightlight a field without a

[Rails] Re: validates_format_of with condition

2010-04-17 Thread pepe
validates_format_of :email, :with=>/^[0-9a-za-z_][\w\.-]*[a-za-z0-...@[a-za-z0-9][\w\.-]*[a-za- Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$/, :message => "is not valid", :unless => Proc.new { |your_model_name_or_any_variable_name_you_want| your_model_name_or_any_variable_name_you_want

[Rails] Re: Validating an individual field (Rails 3)

2010-04-14 Thread pepe
I am not aware of such a feature but you could write your own validation method in the model and invoke it like any other method after the field is populated. On Apr 13, 4:44 pm, cult hero wrote: > I'm working on a form using a model that isn't tied to a database or > ORM at all and using ActiveM

[Rails] Re: Connecting multiple databases - has_many fails

2010-04-14 Thread pepe
In database.yml: your_environment: adapter: your_adapter database: your_database user: your_user ... a_name_for_your_other_database_connection: # your connection information here: adapter, etc. In your models for the other database: class YourClassName < YourOtherDatabaseConnecti

[Rails] Re: please help; form_for passes nil

2010-04-10 Thread pepe
I am a little confused. If your HTML form shows this: wrote: > When I did create, it did make an object and a row in the database > table.  When I go in thru mysql, I can see that it was able to fill > three fields:  id (which is an autoincrement field), the created_at > and updated_at fields, wh

[Rails] Re: Validations problem

2010-04-10 Thread pepe
Are you somehow inserting a blank in your model with a before_save or similar callback? What is the value of the column in the created record? Are you the only one with access to the DB tables? Could somebody have changed the column to allow now null values? On Apr 9, 7:45 am, Hemant Bhargava wro

[Rails] Re: version control system

2010-04-10 Thread pepe
Very good point Fred. Thank you all for all your comments. I really appreciate it. On Apr 10, 2:25 pm, Frederick Cheung wrote: > On Apr 10, 2:58 pm, pepe wrote: > > > Thanks guys. > > > Based on what I've read so far about VCSs and especially about git I > > kn

[Rails] Re: version control system

2010-04-10 Thread pepe
pull > those changes into the customer specific branches and rectify any > issues that would effect individual customer implementations. > > On Apr 9, 8:25 pm, pepe wrote: > > > Hello, > > > I'm sorry if this is not the right place for this question. Please &

[Rails] Re: version control system

2010-04-10 Thread pepe
I am very new to this so I might not understand *how to* do it yet but I need sort of a yes/no answer to at least know if that is possible, and optionally if it can be more or less automated. Once I have that answer it would just be a matter of getting deep into learning the tool. Thanks so much

[Rails] version control system

2010-04-09 Thread pepe
Hello, I'm sorry if this is not the right place for this question. Please feel free to point me in the right direction. Also take into consideration that we have never used a version control system so my questions might just be due to lack of knowledge and/or understanding as of how to use the VC

[Rails] Re: I need a new type of polymorphic has_many association with dynamic foreign_key

2010-04-09 Thread pepe
I think you can accomplish what you need with :has many :through. You'll need another table to store the relationships as Ar Chron suggested. On Apr 8, 3:07 am, Joe wrote: > A vanilla polymorphic belongs_to association allows different > association instances to have targets in different classes.

[Rails] Re: Can the .read method execute any files?

2010-03-29 Thread pepe
If you are planning on just uploading the file and you don't want to upload executable files you should check for that before allowing the upload. On 29 mar, 09:17, GoodGets wrote: > I need to read (and parse) a user uploaded file.  I check it's MIME > types, as well to see if includes proper hea

[Rails] Re: How to read a xml file?

2010-03-27 Thread pepe
Never parsed XML in Ruby before but running a Google search on 'parsing xml in ruby' brought up tons of links. In any case the second document is malformed. The closing tag for 'last' is 'ape', which might give you problems. On Mar 26, 3:52 pm, Jorge alejandro Mendoza torres wrote: > There are m

[Rails] Re: Fascism is coming to Internet

2010-02-23 Thread pepe
I'm in! :D On Feb 23, 3:35 pm, Jarin Udom wrote: > I call Internet Hitler! Who wants to be my Goebbels? > > Also, we need someone to build the concentration camps for Furries. > > Jarin > > On Feb 23, 6:10 am, Joan Miller wrote: > > > *Sorry by this off topic message, but this is too important*

[Rails] Re: de-normalized table associations

2010-02-23 Thread pepe
have this other person involved any longer. I'll remember to bring my Louisville Slugger if I ever meet him in person. ;) On Feb 23, 3:38 pm, Michael Pavling wrote: > On 23 February 2010 20:20, pepe wrote: > > > Thanks a lot Michael for your explanation and efforts. :) > &

[Rails] Re: de-normalized table associations

2010-02-23 Thread pepe
Thanks a lot Michael for your explanation and efforts. :) I had thought about going the way you propose but it seemed to me like too much work (I think the total amount of columns I would need to write code for is 32) for what I actually need. If there is an easy way of making the association work

[Rails] Re: de-normalized table associations

2010-02-23 Thread pepe
mp;name=h... > > On Tue, Feb 23, 2010 at 11:32 AM, pepe wrote: > > Hi, > > > Working with legacy DB here... > > > 2 tables: > >  Projects > >  Workers > > > A worker record has many fields in it to hold project codes as in: > > project

[Rails] de-normalized table associations

2010-02-23 Thread pepe
hile and I can't find a way to associate both tables as in: "Project has_many :workers" "Worker.project1 belongs_to :project" "Worker.project2 belongs_to :project" etc. Any ideas? Pepe -- You received this message because you are subscribed to the Google Groups

[Rails] Re: Strange production vs. development behavior difference

2010-02-19 Thread pepe
Thanks Fred, that explains it. Thank you very much to all of you for your help. Pepe On Feb 19, 11:28 am, Frederick Cheung wrote: > On Feb 19, 4:17 pm, pepe wrote: > > > > > Xavier, > > > I had thought about that long ago and I was sure I was working with > &g

[Rails] [SOLVED] Strange production vs. development behavior difference

2010-02-19 Thread pepe
ers folder and now it all works as expected. Thank you very much! Pepe On Feb 19, 10:07 am, Xavier Noria wrote: > These kind of errors normally belong to the "editing the wrong file" > bag. Can you double-check that the render :text is there with less(1) > in the production mac

[Rails] Re: Strange production vs. development behavior difference

2010-02-19 Thread pepe
that might be causing the problem, where to look? Thank you. Pepe On Feb 19, 1:53 am, Conrad Taylor wrote: > On Thu, Feb 18, 2010 at 7:50 PM, pepe wrote: > > I am running into something that has me stunned. > > > I have a wizard like application that works perfectly well in >

[Rails] Strange production vs. development behavior difference

2010-02-18 Thread pepe
I am running into something that has me stunned. I have a wizard like application that works perfectly well in development but does not in production. The code has nothing environment specific going on and the same DB is used in both modes so I know the problems are not being caused by the data.

[Rails] Re: show/hide some few fields according to a value selected

2010-02-13 Thread pepe
I hope you find what you're looking for. :) On Feb 12, 6:05 am, Amrani Salma wrote: > pepe wrote: > > Hola. > > > Antes de nada, que no te sorprenda si empiezas a recibir respuestas > > diciendo que este grupo es en ingl s s lo. ;) > > > Lo que quieres hacer

[Rails] Re: show/hide some few fields according to a value selected

2010-02-10 Thread pepe
Rails". Merece la pena comprarlo. Hay también otros libros que mencionan cómo hacerlo que no están específicamente dirigidos a Ajax o Javascript. Agile web development with Rails o The Rails Way. También estoy casi seguro que puedes encontrar algo en http://railscasts.com/. Pepe On Feb

[Rails] Re: What happened to CoC?

2010-02-08 Thread pepe
I have a version of the book with something that looks like a circular stamp on the cover that says "Covers Rails 2.0", so I guess it has been updated. ;) And I would have to agree with Marnen. It looks like you have a routing issue. Cheers. On Feb 8, 8:16 am, tuti plain wrote: > > I am not exa

[Rails] Re: multiple "identical" tables

2010-02-05 Thread pepe
I second everybody else here. Add an identifier for the school in your table and you'll be happier than with the setup you were going to use. On Feb 5, 12:21 pm, Ichiro Saga wrote: > Marnen Laibow-Koser wrote: > > Ichiro Saga wrote: > >> Hi, there. > >> I was wondering if it's possible to have on

[Rails] Re: Toggling effect

2010-02-04 Thread pepe
I believe you should queue your divs to hide/show them. In case it helps this is something I have tested and am planning to use in one of my applications. It needs a lot of work to make it better and DRYer but it still does the work I need it to do. It is all based on the model errors but I think i

[Rails] Re: QUERY HELP

2010-02-03 Thread pepe
I agree with the rest of the posts. If your DB grows you're going to be in for a lot of work later on. It would be better to do it right from the start. If you're set however on leaving it as it is you could run several LIKE statements with OR (field like ... or field like ... ) or if your DB acce

[Rails] Re: cucumber vs. RSpec

2010-02-01 Thread pepe
Thanks Jeffrey. :) On Feb 1, 6:21 pm, "Jeffrey L. Taylor" wrote: > Quoting pepe : > [snip]> Ruby and Rails should not be a major problem. Although I am no expert > > I can push my way through getting scratched by thorns and everything > > else in the process. ;) Al

[Rails] Re: cucumber vs. RSpec

2010-02-01 Thread pepe
knowledge. Pepe On Feb 1, 8:04 am, Marnen Laibow-Koser wrote: > Ray K. wrote: > > There are the bddcasts:www.bddcasts.com > > They do cost money, but they're worth it, so is the rspec book. > > > A word of advice: > > Learning RoR at the same time with Cucumbe

[Rails] Re: Saving to the DB uses a lot of RAM?

2010-02-01 Thread pepe
On Feb 1, 7:53 am, Marnen Laibow-Koser wrote: > pepe wrote: > > I am sorry but I don't have an answer about the RAM question. However > > I would like to answer Marnen s comment. While I agree that letting > > the DB do the work for mass record processing should be the b

[Rails] Re: Saving to the DB uses a lot of RAM?

2010-01-31 Thread pepe
I am sorry but I don't have an answer about the RAM question. However I would like to answer Marnen’s comment. While I agree that letting the DB do the work for mass record processing should be the best and most efficient way to go by reading the OP one cannot assume that is the way things are in t

[Rails] Re: cucumber vs. RSpec

2010-01-31 Thread pepe
Sorry, one more thing. What could be the best sources of information to learn how to use both tools? I learn much better with examples. I have searched for the RSpec book, which for what I've read has both subjects in it, but it seems it's not yet available. Thank you. On Jan 31, 10:0

[Rails] Re: cucumber vs. RSpec

2010-01-31 Thread pepe
Thanks for the answers. How long do you think it could take for a non initiated person like myself to get used to using BDD and learning RSpec and cucumber? Thanks again. On Jan 31, 6:27 pm, Marnen Laibow-Koser wrote: > pepe wrote: > > I want to start diving into BDD. I have never

[Rails] cucumber vs. RSpec

2010-01-31 Thread pepe
RSpec. Am I right or should be one used for certain things and the other one for others? 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...@

[Rails] Re: Newbie question: Where do I update the CRUD statements (if they exist)?

2010-01-27 Thread pepe
I believe you will have to learn about associations (or relationships between tables, as another post has already noted). Look into 'belongs_to' and 'has_*' relationships (probably 'has_one' or 'has_many'). That will most likely teach you what you need. On Jan 26, 7:16 pm, Souschef wrote: > I've

[Rails] Re: validates_numericality_of , need to accept "-"

2010-01-26 Thread pepe
On the other hand, validating that the value is just a number doesn't solve entering faulty information... I would still validate the format with a regexp to make sure you get what you're expecting. On Jan 26, 8:48 am, pepe wrote: > That would be fine if no validation were needed b

[Rails] Re: validates_numericality_of , need to accept "-"

2010-01-26 Thread pepe
field, for example a phone number containing '123'. On Jan 25, 11:00 pm, Marnen Laibow-Koser wrote: > pepe wrote: > > Why don't you use 'validates_format_of' instead? You can use a regexp > > and make sure there are only numbers and dashes. Here is the >

[Rails] Re: validates_numericality_of , need to accept "-"

2010-01-25 Thread pepe
Why don't you use 'validates_format_of' instead? You can use a regexp and make sure there are only numbers and dashes. Here is the documentation page: http://api.rubyonrails.org/classes/ActiveRecord/Validations/ClassMethods.html#M002168 On Jan 25, 6:50 am, Srikanth Jeeva wrote: > Hi, > > I am us

[Rails] Re: Forcing load_target

2010-01-23 Thread pepe
Hi, I'm not sure I'm understanding. Are you asking about eager loading associations? If that is the case it can be done with :include when you get you A record. On Jan 21, 11:34 am, rsynnott wrote: > Hi, > I have the case where I have an object A, which has a has_many through > relationship with

[Rails] Re: DRYing up helper

2010-01-17 Thread pepe
eval worked indeed. Thanks again. The solution, as usual, was simpler than what I thought it would be. :) On Jan 17, 5:35 pm, Liam Morley wrote: > pepe, you should be able to use eval(section.upcase + '_FIELDS') > instead of constantize. > > That being said, I can ne

[Rails] Re: DRYing up helper

2010-01-17 Thread pepe
ming behind. Thanks a lot. On Jan 17, 5:35 pm, Liam Morley wrote: > pepe, you should be able to use eval(section.upcase + '_FIELDS') > instead of constantize. > > That being said, I can never suggest using eval unless I accompany > that with a warning, a > lahttp:

[Rails] DRYing up helper

2010-01-17 Thread pepe
Hi, I'm trying to make a helper in my application DRYer. Here is an edited version of the current relevant code: module MyControllerHelper PERSON_FIELDS = ['last_name', 'first_name'] ADDRESS_FIELDS = ['address_1', 'address_2', 'city', 'state', 'zip'] def get_errors_on(section) errors

[Rails] Re: fields_for

2010-01-10 Thread pepe
<% end -%> @person_project#supervisors is a model method that will return the list of supervisor objects to choose from: current record's, current record project's and current record project contractors'. Thanks again for taking the time. I really appreciate it. On Jan 10, 11:

[Rails] Re: fields_for

2010-01-10 Thread pepe
now how to solve this riddle I would be very, very thankful. Thanks a lot. On Jan 9, 10:43 pm, Rick DeNatale wrote: > On Sat, Jan 9, 2010 at 9:19 PM, pepe wrote: > > I am just learning how to use 'fields_for' so forgive me if I sound > > like I don't know what I'm

[Rails] Re: fields_for

2010-01-09 Thread pepe
elow): <% form_for :my_object, @my_object, :url => { :action => "my_action" } do |form| %> <% form.fields_for :my_collection do |fields_for_object| %> <%= fields_for_object.object.my_attribute %> # <<< This is what I was looking for Thanks for

[Rails] Re: fields_for

2010-01-09 Thread pepe
one of it's attributes. Any help would be much appreciated. Thank you. On Jan 9, 5:40 pm, pepe wrote: > I need to display information from the collection in a fields_for > without using the fields_for block's object. For example, in the > following code: > > <

[Rails] fields_for

2010-01-09 Thread pepe
I need to display information from the collection in a fields_for without using the fields_for block's object. For example, in the following code: <% form_for :my_object, @my_object, :url => { :action => "my_action" } do |form| %> Last name: <%= form.text_field :last %> <% from.fields_for

[Rails] Re: Oracle adapter problem? How to fix this?

2010-01-05 Thread pepe
rsim/oracle-enhanced) which I maintain to be compatible with latest > Rails releases and which we use in many production applications. > > Raimonds > > On Jan 1, 6:47 pm, pepe wrote: > > > Good idea. I'll do it, although if I remember well what I read > > Raimonds

[Rails] Re: Oracle adapter problem? How to fix this?

2010-01-01 Thread pepe
25 pm, Rodrigo Dellacqua wrote: > You should report this issue. > > You'll save someone's life. > > On Wed, Dec 30, 2009 at 8:16 PM, pepe wrote: > > Hi Max, > > > I did some more investigation and found that there is an alternative > > to Oracle&

[Rails] Re: Oracle adapter problem? How to fix this?

2009-12-30 Thread pepe
Hi Max, I did some more investigation and found that there is an alternative to Oracle's adapter made by Raimonds Simanovskis. He calls it 'enhanced' adapter (http://blog.rayapps.com/2008/05/13/activerecord- oracle-enhanced-adapter/). Just curious about it I read what it was about and decided to g

<    1   2   3   4   5   >