Re: [Rails] Re: technologies needed to learn to be a good ror developer

2010-11-27 Thread Vladimir Rybas
Read this article and comments http://techiferous.com/2010/07/roadmap-for-learning-rails/ and here is a resources list http://www.engineyard.com/blog/2010/resources-for-getting-started-with-ruby-on-rails/ Good luck with that On Sun, Nov 28, 2010 at 5:39 AM, bonsaiben wrote: > > > On 11月22日, 午後3

[Rails] Re: technologies needed to learn to be a good ror developer

2010-11-27 Thread bonsaiben
On 11月22日, 午後3:07, venkata reddy wrote: > Hi everybody... >                I am venkey here. very interested to learn ruby on > rails.Though i have not had any experience  with the web development, > i want to learn ror as quickly as i can.I installed ror successfully.i > am just starting to bui

Re: [Rails] Re: editors available for designing for ror..

2010-11-27 Thread David Kahn
On Sat, Nov 27, 2010 at 8:31 PM, David Kahn wrote: > > > On Sat, Nov 27, 2010 at 8:11 PM, Marnen Laibow-Koser > wrote: > >> Andre Joseph Cubeta wrote in post #964087: >> > +1 Edmond, hehe >> > >> > @Emmanuel - go for Textmate for a good start if you're a Mac user, >> >> Or save the €80 and try Ko

Re: [Rails] Re: editors available for designing for ror..

2010-11-27 Thread David Kahn
On Sat, Nov 27, 2010 at 8:11 PM, Marnen Laibow-Koser wrote: > Andre Joseph Cubeta wrote in post #964087: > > +1 Edmond, hehe > > > > @Emmanuel - go for Textmate for a good start if you're a Mac user, > > Or save the €80 and try KomodoEdit. > I just tried this too and it is really not bad.. I thin

[Rails] Re: HAML including CSS and JavaScript

2010-11-27 Thread Gerő Zoltán
Sorry, "half-solved", this was the solution: %link(rel="stylesheet" type="text/css" href="style.css") Without space between link and ( and in Sinatra /public/ is not necessary, this is default, so it will find the CSS file there. Maybe others will have the same problem, so I shared. But JavaScri

Re: [Rails] Re: Helper to generate css-id from AR model. Do I have alzheimers?

2010-11-27 Thread David Kahn
On Fri, Nov 26, 2010 at 11:42 AM, Frederick Cheung < frederick.che...@gmail.com> wrote: > > > On Nov 26, 4:13 pm, Rick DeNatale wrote: > > On one of the many Rails projects I've worked on over the years, I > > seem to recall using either a helper or a method on a model to > > generate a css id ba

[Rails] Re: HAML including CSS and JavaScript

2010-11-27 Thread Marnen Laibow-Koser
Zoltan Gero wrote in post #964407: > Hello, > > how to include CSS file with Haml? Use Rails' stylesheet_link_tag helper. > Every way I tried puts the href=... > infos > after the tag, not inside, like: > href="style.css" rel="stylesheet" type="text/css" You need to learn about how to do attribu

[Rails] Re: editors available for designing for ror..

2010-11-27 Thread Marnen Laibow-Koser
Andre Joseph Cubeta wrote in post #964087: > +1 Edmond, hehe > > @Emmanuel - go for Textmate for a good start if you're a Mac user, Or save the €80 and try KomodoEdit. > if > windows nah' I'm not a fan of any editors sorry for that, or just a > simple TextPad will do. Even try VIM on linux if wan

[Rails] HAML including CSS and JavaScript

2010-11-27 Thread Gerő Zoltán
Hello, how to include CSS file with Haml? Every way I tried puts the href=... infos after the tag, not inside, like: href="style.css" rel="stylesheet" type="text/css" In reference I onlye read about JavaScript, not any word about CSS. But Javascript also didn't worked, how should make include it?

Re: [Rails] Re: rails server command

2010-11-27 Thread Brian Troutwine
On Sat, Nov 27, 2010 at 6:57 PM, Paul Roche wrote: > Hi, I'd like to bump this thread if this is ok? My main objective is for > people to take a look at this error message I get when running 'rails > server' Have you googled your error message? I found more than a few references that professed to

[Rails] Re: Re: Helper to generate css-id from AR model. Do I have alzheimers?

2010-11-27 Thread Marnen Laibow-Koser
Rick Denatale wrote in post #964140: > On Fri, Nov 26, 2010 at 12:42 PM, Frederick Cheung > wrote: >>> >> Are you thinking of dom_id / dom_class ? > > Yes indeed, thanks! If you're using Haml, it's even easier: just use the [...@object] syntax. > > -- > Rick DeNatale Best, -- Marnen Laibow-Kose

[Rails] Re: Re: Using form_for inside a helper

2010-11-27 Thread Marnen Laibow-Koser
Please quote when replying. Rob Lacey wrote in post #964320: > Without opening a debate on the issue. I find the whole bad form, > conventions as interesting as it is frustrating. I need to re-use this > button helper in many views several times over for several different > buttons. Say... > > <%=

Re: [Rails] Re: Re: Re: Technologies need to know before starting ror development?

2010-11-27 Thread Hassan Schroeder
On Sat, Nov 27, 2010 at 4:08 PM, Marnen Laibow-Koser wrote: > Of course it isn't.  But it *is* geared to learners, which the official > spec is not. Whatever you say. I (and I'm sure many others) learned from the recommendations and `view source` because that was all there was at the time -- nev

[Rails] Re: Re: Re: Technologies need to know before starting ror development?

2010-11-27 Thread Marnen Laibow-Koser
Hassan Schroeder wrote in post #964393: > On Sat, Nov 27, 2010 at 3:19 PM, Marnen Laibow-Koser > wrote: > >> Depends. Most of w3schools' HTML and CSS information that I've seen is >> pretty good. It's usually one of the first places I tell learners to go. > > Good for you. It's still not the defin

[Rails] Re: rails server command

2010-11-27 Thread Paul Roche
Hi, I'd like to bump this thread if this is ok? My main objective is for people to take a look at this error message I get when running 'rails server' Attachments: http://www.ruby-forum.com/attachment/5472/error.JPG -- Posted via http://www.ruby-forum.com/. -- You received this message becaus

Re: [Rails] Re: Re: Re: Re: I have a NoMethodError, please help!

2010-11-27 Thread Michael Pavling
On 27 November 2010 23:46, Zack Nathan wrote: >> You don't *have* a singular named controller... and if you did why >> would you be mapping resources for it? > > My controller is named repository. you said earlier: > my controller is called RepositoriesController. ...now you're saying is actuall

[Rails] Re: Re: Re: Re: I have a NoMethodError, please help!

2010-11-27 Thread Zack Nathan
Michael Pavling wrote in post #964391: > On 27 November 2010 23:24, Zack Nathan wrote: >>> You might notice, that your current route mapping is singular, and the >>> one I've suggested using is plural... >> >> But does that work with a singular named controller? >> Thanks, > > You don't *have* a s

Re: [Rails] Re: Re: Technologies need to know before starting ror development?

2010-11-27 Thread Hassan Schroeder
On Sat, Nov 27, 2010 at 3:19 PM, Marnen Laibow-Koser wrote: > Depends.  Most of w3schools' HTML and CSS information that I've seen is > pretty good.  It's usually one of the first places I tell learners to go. Good for you. It's still not the definitive source for the HTML and CSS recommendation

Re: [Rails] Re: Re: Re: I have a NoMethodError, please help!

2010-11-27 Thread Michael Pavling
On 27 November 2010 23:24, Zack Nathan wrote: >> You might notice, that your current route mapping is singular, and the >> one I've suggested using is plural... > > But does that work with a singular named controller? > Thanks, You don't *have* a singular named controller... and if you did why wo

[Rails] Re: Re: Re: I have a NoMethodError, please help!

2010-11-27 Thread Marnen Laibow-Koser
Zack Nathan wrote in post #964388: [...] >> You might notice, that your current route mapping is singular, and the >> one I've suggested using is plural... > > But does that work with a singular named controller? Why do you want a singular-named controller? Plural is the usual convention, unless

[Rails] Re: Re: Re: I have a NoMethodError, please help!

2010-11-27 Thread Zack Nathan
Michael Pavling wrote in post #964384: > On 27 November 2010 22:37, Zack Nathan wrote: >> I just dont see where the problem is! Its super strange.. > > For the last time... have you done this? > >>> so try changing it to : >>> >>> map.resources :repositories, :has_many => :bugs >>> > > You might n

[Rails] Re: Re: Technologies need to know before starting ror development?

2010-11-27 Thread Marnen Laibow-Koser
Hassan Schroeder wrote in post #964318: > On Sat, Nov 27, 2010 at 3:59 AM, gezope wrote: > >> I'm not an expert, don't believe me ;) But I agree with others: W3 >> basics are useful, because you won't understand the picture in Rails. >> >> So first HTML+CSS+JavaScript, hopefully from The Source: >

Re: [Rails] Re: Re: I have a NoMethodError, please help!

2010-11-27 Thread Michael Pavling
On 27 November 2010 22:37, Zack Nathan wrote: > I just dont see where the problem is! Its super strange.. For the last time... have you done this? >> so try changing it to : >> >> map.resources :repositories, :has_many => :bugs >> You might notice, that your current route mapping is singular, a

[Rails] Re: Re: I have a NoMethodError, please help!

2010-11-27 Thread Zack Nathan
Michael Pavling wrote in post #964379: > On 27 November 2010 22:10, Zack Nathan wrote: More likely (due to the "repositories path") to be a routing problem. Zack, do you have "map.resources :repositories" in your routes.rb file? >> >> I dont actually. My routes for repository looks

Re: [Rails] Re: I have a NoMethodError, please help!

2010-11-27 Thread Michael Pavling
On 27 November 2010 22:10, Zack Nathan wrote: >>> More likely (due to the "repositories path") to be a routing problem. >>> Zack, do you have "map.resources :repositories" in your routes.rb >>> file? > > I dont actually. My routes for repository looks like this: map.resources > :repository, :has_m

[Rails] Re: I have a NoMethodError, please help!

2010-11-27 Thread Zack Nathan
Jaap Haagmans wrote in post #964371: > On Nov 27, 10:50pm, Michael Pavling wrote: >> On 27 November 2010 21:17, Brian Troutwine wrote: >> >> >> undefined method `repositories_path' for # >> >> > It is expected by your view that the controller serving up this view >> > has defined a model instance

[Rails] Re: Can't get past rake db:create, guidance appreciated

2010-11-27 Thread Marnen Laibow-Koser
Marnen Laibow-Koser wrote in post #964375: > Kannav R. wrote in post #964048: >> in your Gemfile delete line which have sqlite3-ruby > > As usual, your advice is useless and wrong. Please don't post if this > is all you're going to say. No, on second look, you were right and I'm the one who shoul

[Rails] Re: Can't get past rake db:create, guidance appreciated

2010-11-27 Thread Marnen Laibow-Koser
Kannav R. wrote in post #964048: > in your Gemfile delete line which have sqlite3-ruby As usual, your advice is useless and wrong. Please don't post if this is all you're going to say. Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org -- Posted via http://www.ruby-forum.com

[Rails] Re: Where should data migrations go?

2010-11-27 Thread Marnen Laibow-Koser
Anthony Ettinger wrote in post #749437: > I recall problems with putting data migrations directly into a > database migration file. What you recall are problems with putting *seed data* into migration files. Migrations are for changing the database schema only. Sometimes, however, changing the

[Rails] Re: I have a NoMethodError, please help!

2010-11-27 Thread jhaagmans
On Nov 27, 10:50 pm, Michael Pavling wrote: > On 27 November 2010 21:17, Brian Troutwine wrote: > > >> undefined method `repositories_path' for # > > > It is expected by your view that the controller serving up this view > > has defined a model instance @repository. > > More likely (due to the "r

Re: [Rails] I have a NoMethodError, please help!

2010-11-27 Thread Michael Pavling
On 27 November 2010 21:17, Brian Troutwine wrote: >> undefined method `repositories_path' for # > > It is expected by your view that the controller serving up this view > has defined a model instance @repository. More likely (due to the "repositories path") to be a routing problem. Zack, do you h

[Rails] Re: I have a NoMethodError, please help!

2010-11-27 Thread Zack Nathan
Brian Troutwine wrote in post #964363: > On Sat, Nov 27, 2010 at 3:43 PM, Zack Nathan > wrote: >> Hey everyone, >> >> I get this error for some reason when trying to access my new action. >> Here's the error: >> undefined method `repositories_path' for # >> >> Heres my view code: >> >> <% form_for

Re: [Rails] I have a NoMethodError, please help!

2010-11-27 Thread Brian Troutwine
On Sat, Nov 27, 2010 at 3:43 PM, Zack Nathan wrote: > Hey everyone, > > I get this error for some reason when trying to access my new action. > Here's the error: > undefined method `repositories_path' for # > > Heres my view code: > > <% form_for(@repository) do |f| %> It is expected by your view

[Rails] I have a NoMethodError, please help!

2010-11-27 Thread Zack Nathan
Hey everyone, I get this error for some reason when trying to access my new action. Here's the error: undefined method `repositories_path' for # Heres my view code: <% form_for(@repository) do |f| %> <%= f.error_messages %> <%= f.label :name %> <%= f.text_field :name %> <

[Rails] Re: How do I switch sqlite3 to mysql on RoR

2010-11-27 Thread Akshat P.
installing bundler and adding mysql to gemfile totally works ! http://techleap.blogspot.com/2010/11/not-able-to-create-database-mysql-and.html -- 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

[Rails] Re: has_many :through - additional attribute

2010-11-27 Thread Markus Zm
Colin, > Does that help? Thank you very much. I think I've got it. It works in the console, and now I will try to implement it in my application. Regards, Markus -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on R

[Rails] WHat's the best place for dropdown options - model, or locale?

2010-11-27 Thread netizer
Usually, when options for select tag was set and not dependent on data from database, I placed key-value pairs in yml locale file. I wasn't sure this is the right place for that. For example in ruby 1.8.7 key- value pairs taken from locale are displayed in random order. I have even more doubts now,

Re: [Rails] Re: rails server command

2010-11-27 Thread Brian Troutwine
On Sat, Nov 27, 2010 at 12:28 PM, Paul Roche wrote: > Ah, I created a new app, specific to the new ruby version. When I try > and run the server I get an error mesasge. Please find attached > > Attachments: > http://www.ruby-forum.com/attachment/5468/error.JPG Ah, I'm afraid that's a Windows spec

[Rails] Rails - class UserMailer < ActionMailer::Base

2010-11-27 Thread CuriousNewbie
Hello, I currently have my app's mail setup as follows: Step 1: Observers monitor tables, and send out emails when triggered by after_save in the observer Step 2: The observer then calls something like: `UserMailer.XX_created_notification(record).deliver` Step 3: User mailer sends the mail o

[Rails] Re: rails server command

2010-11-27 Thread Paul Roche
Ah, I created a new app, specific to the new ruby version. When I try and run the server I get an error mesasge. Please find attached Attachments: http://www.ruby-forum.com/attachment/5468/error.JPG -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscr

Re: [Rails] Re: rails server command

2010-11-27 Thread Brian Troutwine
On Sat, Nov 27, 2010 at 12:17 PM, Paul Roche wrote: > I think so. I run it from rails_app/project_name Do be sure that rails_app/project_name is a rails3 app. > I am using instant rails. I was running ruby v 186, then I downloaded > 192 and literally copy and pasted the 192 files into the ruby f

[Rails] Re: rails server command

2010-11-27 Thread Paul Roche
I think so. I run it from rails_app/project_name I am using instant rails. I was running ruby v 186, then I downloaded 192 and literally copy and pasted the 192 files into the ruby folder in instantrails, overwriting what existed before hand. I'm not sure if here lies the problem -- Posted vi

Re: [Rails] rails server command

2010-11-27 Thread Brian Troutwine
Are you running rails server in the root of your project? On Sat, Nov 27, 2010 at 12:10 PM, Paul Roche wrote: > Hi. When I try and start my server using 'rails server' I get the > following. > > Usage: >  rails new APP_PATH [options] > > Options: >  -r, [--ruby=PATH]           # Path to the R

[Rails] rails server command

2010-11-27 Thread Paul Roche
Hi. When I try and start my server using 'rails server' I get the following. Usage: rails new APP_PATH [options] Options: -r, [--ruby=PATH] # Path to the Ruby binary of your choice # Default: C:/InstantRails-2.0-win/ruby/bin/r xe -d, [--database=D

Re: [Rails] Re: Using form_for inside a helper

2010-11-27 Thread Rob Lacey
Without opening a debate on the issue. I find the whole bad form, conventions as interesting as it is frustrating. I need to re-use this button helper in many views several times over for several different buttons. Say... <%= button_helper(:fruit) %> <%= button_helper(:fungi) %> <%= button_helper(

Re: [Rails] Re: Technologies need to know before starting ror development?

2010-11-27 Thread Hassan Schroeder
On Sat, Nov 27, 2010 at 3:59 AM, gezope wrote: > I'm not an expert, don't believe me ;) But I agree with others: W3 > basics are useful, because you won't understand the picture in Rails. > > So first HTML+CSS+JavaScript, hopefully from The Source: > http://www.w3schools.com/ Hopefully not. The

[Rails] Re: Rails requires RubyGems >= 1.3.2. Please install RubyGems and try again

2010-11-27 Thread Franck
I solved this problem by reinstalling everything. I installed RoR Enterprise and then installed most gem packages that didn't come by default. This seems to have solved my problem. Franck -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.

Re: [Rails] Re: Want to learn Ruby as web programming language

2010-11-27 Thread Hassan Schroeder
On Sat, Nov 27, 2010 at 7:28 AM, Peter Parker wrote: I was looking for "Ruby as web programming", > meaning, something that can guide me how to use "Ruby on Rails" http://lmgtfy.com/?q=ruby+web+programming -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan

Re: [Rails] Re: Types of db for environments - same or different?

2010-11-27 Thread Michael Pavling
On 27 November 2010 16:05, daze wrote: >> Sorry for any confusion. I was answering the two different questions >> the OP seemed to ask: >> 1) *can* you set up different DBs for dev/test/production? > > Sound good? Yes. Sorry again - of course, all the environments use different databases (even i

Re: [Rails] Re: Re: FasterCSV isn't rendering columns

2010-11-27 Thread Colin Law
On 27 November 2010 16:00, Greg Ma wrote: > Colin Law wrote in post #964301: >> On 27 November 2010 14:56, Greg Ma wrote: Colin >>> >>> yes it looks correct >> >> So you have no problem with FasterCSV then.  What exactly _is_ the >> problem? >> >> Colin > > The problem is the rendering in th

[Rails] Re: Types of db for environments - same or different?

2010-11-27 Thread daze
> Sorry for any confusion. I was answering the two different questions > the OP seemed to ask: > 1) *can* you set up different DBs for dev/test/production? > Yes you can, and it's very easy. > 2) *should* you do it? > No - in most cases. I think, when you say "should you do it?" you mean "should y

[Rails] Re: Re: FasterCSV isn't rendering columns

2010-11-27 Thread Greg Ma
Colin Law wrote in post #964301: > On 27 November 2010 14:56, Greg Ma wrote: >>> Colin >> >> yes it looks correct > > So you have no problem with FasterCSV then. What exactly _is_ the > problem? > > Colin The problem is the rendering in the CSV. I a supposed to have 4 columns, but instead I hav

[Rails] Re: Want to learn Ruby as web programming language

2010-11-27 Thread Peter Parker
HI Zoltn, First of all thanks for our reply. The link u provided http://www.ruby-lang.org/en/documentation/quickstart/, if the tutorial for the ruby language. I was looking for "Ruby as web programming", meaning, something that can guide me how to use "Ruby on Rails" Thanks -- Posted via h

Re: [Rails] Types of db for environments - same or different?

2010-11-27 Thread Michael Pavling
On 27 November 2010 12:57, Colin Law wrote: > Here you say they should be the same I think (which I agree with > generally), yet right at the start you said it was ok for them to be > different. Sorry for any confusion. I was answering the two different questions the OP seemed to ask: 1) *can* yo

Re: [Rails] Re: FasterCSV isn't rendering columns

2010-11-27 Thread Colin Law
On 27 November 2010 14:56, Greg Ma wrote: > Colin Law wrote in post #964287: >> On 27 November 2010 14:10, Greg Ma wrote: >>>   alerts.each do |alert| >>>    csv << [alert.id, alert.email, alert.city, alert.frequence] >>>   end >>>  end >> >> Have you used ruby-debug or similar method to break in

[Rails] Re: FasterCSV isn't rendering columns

2010-11-27 Thread Greg Ma
Colin Law wrote in post #964287: > On 27 November 2010 14:10, Greg Ma wrote: >> alerts.each do |alert| >>csv << [alert.id, alert.email, alert.city, alert.frequence] >> end >> end > > Have you used ruby-debug or similar method to break into here to see > whether csv_string is setup correct

Re: [Rails] FasterCSV isn't rendering columns

2010-11-27 Thread Colin Law
On 27 November 2010 14:10, Greg Ma wrote: > Hi, > > I have a problme with fasterCSV, it isn't rendering columns... I don't > understand why. All my columns are inside the first column the csv file > :( > > csv_string = FasterCSV.generate(:col_sep => "\t") do |csv| >      # header row >      csv <<

[Rails] FasterCSV isn't rendering columns

2010-11-27 Thread Greg Ma
Hi, I have a problme with fasterCSV, it isn't rendering columns... I don't understand why. All my columns are inside the first column the csv file :( csv_string = FasterCSV.generate(:col_sep => "\t") do |csv| # header row csv << ["id", "Email", "Ville", "Type", "Fréquence"] # da

[Rails] Re: Want to learn Ruby as web programming language

2010-11-27 Thread gezope
Hello Peter, First this: http://www.ruby-lang.org/en/documentation/quickstart/ and also check the Try it out link. I suggest these books: http://www.pragprog.com/titles/ruby/programming-ruby http://www.pragprog.com/titles/fr_ltp/learn-to-program the second is about the basics, the first is about

Re: [Rails] Types of db for environments - same or different?

2010-11-27 Thread Colin Law
On 27 November 2010 12:45, Michael Pavling wrote: > On 27 November 2010 03:14, daze wrote: >> Is it okay to have, for example, sqlite3 for development and testing, >> and mysql2 for production?  Is that doable/common/not too hard to >> configure? > > It's perfectly doable, and perfectly okay, and

Re: [Rails] Ruby on Rails Developer

2010-11-27 Thread Michael Pavling
On 26 November 2010 16:32, Gintautas Šimkus wrote: > > I just calculated your salary and got a little excited > > Anyway, do you accept some references? > > So anyway if you do need some (pretty much) rookie candidates for RoR > positions, feel free to contact me, preferably with concrete requirem

Re: [Rails] Types of db for environments - same or different?

2010-11-27 Thread Michael Pavling
On 27 November 2010 03:14, daze wrote: > Is it okay to have, for example, sqlite3 for development and testing, > and mysql2 for production?  Is that doable/common/not too hard to > configure? It's perfectly doable, and perfectly okay, and apparently quite common; just complete the appropriate sec

Re: [Rails] Re: Strange error while using Authlogic

2010-11-27 Thread Colin Law
On 27 November 2010 12:21, Kostas L. wrote: Please don't top post, it makes it difficult to follow the thread. Insert your reply into the previous post. Thanks > Hi colin, > i have used these names because i have already created a php > application using these names and i want to create the sam

[Rails] Re: Hardware question: dual or quad core?

2010-11-27 Thread elliottg
I had an i7 mbp. I just bought a mbair and due to the fact that it uses flash media for storage it feels about a third faster at most rails dev tasks I throw at it. For instance my cucumber suites run about a third faster than my i7! Even parallels starts up and shuts down faster. Working on large

[Rails] Re: Strange error while using Authlogic

2010-11-27 Thread Kostas L.
Hi colin, i have used these names because i have already created a php application using these names and i want to create the same application in rails. Its for a project in my university. I dont want to have different field names .. Do you think the problem is the names??? I dont think so... Kost

[Rails] Re: Technologies need to know before starting ror development?

2010-11-27 Thread gezope
Hello, I'm not an expert, don't believe me ;) But I agree with others: W3 basics are useful, because you won't understand the picture in Rails. So first HTML+CSS+JavaScript, hopefully from The Source: http://www.w3schools.com/ Here you found the standards. I think it's a good way to check how thi

[Rails] Re: Types of db for environments - same or different?

2010-11-27 Thread gezope
Hi, I think you can use different databases without any problem, just set it in the database.yaml file. I think this is the only settings you need, but it's wise to check the application.rb file, if any other smart settings are available. For hardcoding SQL use this tutorial: http://guides.rubyonr

[Rails] Re: Long elaboration

2010-11-27 Thread Stefano Bonomi
Colin Law wrote in post #964252: > On 27 November 2010 09:45, Stefano Bonomi wrote: >> Well >> my problem is that after form post, I have to do a long elaboration. >> So, my page remain stuck for a long time >> I would like to display an intermediate page after post (thank for your >> coll

Re: [Rails] invalid date

2010-11-27 Thread Michael Pavling
On 27 November 2010 03:30, Tiesto wrote: > Hi!! > > Somebody knows why throws me an exception?? > > invalid date > (eval):6:in `directoryOfAgentsByCity' > C:/Users/usuario/Desktop/Servidor/servidor3/app/controllers/ > enterprise_controller.rb:727:in > `get_agent_by_city' The clue's in the error m

[Rails] invalid date

2010-11-27 Thread Tiesto
Hi!! Somebody knows why throws me an exception?? invalid date C:/Ruby/lib/ruby/1.8/date.rb:1482:in `civil' C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/ core_ext/string/conversions.rb:23:in `to_datetime' C:/Ruby/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/xsd/datatypes.rb:

Re: [Rails] Something missing at Getting started

2010-11-27 Thread Xavier Noria
On Sat, Nov 27, 2010 at 1:03 AM, SungHun Park wrote: > I am really beginer of ROR and looking around Getting Started. > > In 7.1 Generating a Model, I  cannot see any command code to generate > comment model. There is only div box without code. I am using IE7 and > Windows XP. > > Here is the lin

Re: [Rails] Long elaboration

2010-11-27 Thread Colin Law
On 27 November 2010 09:45, Stefano Bonomi wrote: > Well > my problem is that after form post, I have to do a long elaboration. > So, my page remain stuck for a long time > I would like to display an intermediate page after post (thank for your > collaboration..blah, blah, blah.) > so t

[Rails] Long elaboration

2010-11-27 Thread Stefano Bonomi
Well my problem is that after form post, I have to do a long elaboration. So, my page remain stuck for a long time I would like to display an intermediate page after post (thank for your collaboration..blah, blah, blah.) so that the visitor knows whats going on. Any suggestion? Thanks i

Re: [Rails] Re: Using form_for inside a helper

2010-11-27 Thread Colin Law
On 27 November 2010 09:16, Rob Lacey wrote: > I'm judging from your response that you would you argue that using a > Rails view helper inside another view helper is wrong then? I would > say this isn't crazy its just trying to DRY up a small form (just a > button) I am using in lots of different p

Re: [Rails] Adding date into entries when I do scaffolding [beginner question]

2010-11-27 Thread Colin Law
On 26 November 2010 23:54, JK wrote: > So I would like to add time as an attribute of my Submission using > scaffolding. What is the code I should use to replace part? > > rails generate scaffold Submission title:string describtion:text > email:string category:string time:?? I would advi

[Rails] Re: Acts_as_ferret is not indexing either locally or remote

2010-11-27 Thread eugenio
I think you have to specify which fields ferret will index. Take a look at: https://github.com/jkraemer/acts_as_ferret (under "Usage"). I got a lot of problems with ferret under production, you may consider switching to sphinx/thinking sphinx. On 27 Nov, 07:00, Arun Kumar wrote: > Hi All, >   I w

Re: [Rails] Something missing at Getting started

2010-11-27 Thread Colin Law
On 27 November 2010 00:03, SungHun Park wrote: > I am really beginer of ROR and looking around Getting Started. > > In 7.1 Generating a Model, I  cannot see any command code to generate > comment model. There is only div box without code. I am using IE7 and > Windows XP. > > Here is the link: > >

Re: [Rails] rails 3.0.3 in production css js do not load HELP

2010-11-27 Thread Colin Law
On 26 November 2010 22:04, Humberto Ribeiro wrote: > in rails 3.0.3, when up app in production mode... the css and js > cannot be loades... anyone know how to handler it to make it works? What do you mean they cannot be loaded? Check the html for the page to see if the script/link tags are there

Re: [Rails] Re: Using form_for inside a helper

2010-11-27 Thread Rob Lacey
I'm judging from your response that you would you argue that using a Rails view helper inside another view helper is wrong then? I would say this isn't crazy its just trying to DRY up a small form (just a button) I am using in lots of different places. I found the solution in the end. module MyHe

[Rails] Re: Using form_for inside a helper

2010-11-27 Thread Robert Pankowecki (rupert)
You might wanna consider creating your own form builder instead putting into helpers. Look at formtastic gem as an example. Robert Pankowecki http://robert.pankowecki.pl -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this gro

Re: [Rails] Re: Strange error while using Authlogic

2010-11-27 Thread Colin Law
On 26 November 2010 21:20, Kostas L. wrote: > Hi colin, > i dont see any UserSession table... That's ok (I had forgotten how authlogic works). Lets try again then :) Why have you got t_login and t_password in your view? Should it not just be :login and :password? Colin -- You received this me