[Rails] Joins in ror

2011-03-01 Thread Kanika S.
Hello Everyone, I am having problems in implementing joins in ror. as I used [code]@users=User.joins('LEFT OUTER JOIN donations ON donations.user_id = users.id')[/code] I also tried [code]@users=User.find_by_sql "select u.*, d.amount from users u left join donations d on u.id=d.user_id"[/cod

[Rails] Re: render :collection calling partial with phantom object?

2011-03-01 Thread Frederick Cheung
On Mar 1, 4:49 pm, Fearless Fool wrote: > > * (Curiosity:) How did render(... :collection) know about the newly > created metered_service without an ID?  I know that > premise.metered_services.build will create a new record, but it appears > that the new record doesn't appear on the premises.me

Re: [Rails] Terminal for Windows XP

2011-03-01 Thread Jim Ruther Nill
On Wed, Mar 2, 2011 at 8:40 AM, Tyler.DeLawder wrote: > So I was wanting to know if there was a program I can use like > termianl on Linux or something for Windows XP I do not like the > Command Prompt... > > install cygwin. http://www.cygwin.com/ > I can not figure out how to edit my apps in t

[Rails] Re: Rails guides has_many :through example

2011-03-01 Thread skt
On Mar 1, 11:13 pm, zindelo wrote: > Sorry I didn't add the patients in there, but I would need the three tables. > What I'm after is how to represent this data in a form. There is a ton of > info out there about associations, but not much related to using the data in > a join table like the app

[Rails] Re: Rails guides has_many :through example

2011-03-01 Thread zindelo
Sorry I didn't add the patients in there, but I would need the three tables. What I'm after is how to represent this data in a form. There is a ton of info out there about associations, but not much related to using the data in a join table like the appointment_date field. It seems like the phys

[Rails] Terminal for Windows XP

2011-03-01 Thread Tyler.DeLawder
So I was wanting to know if there was a program I can use like termianl on Linux or something for Windows XP I do not like the Command Prompt... I can not figure out how to edit my apps in the command prompt either please post a link to a guide or something for me I have been looking for more help

[Rails] Re: Rails guides has_many :through example

2011-03-01 Thread skt
What are you trying to accomplish here? has_many :through setup requires three tables. In this case it seems all you need is physician has_many appointments. class Physician < ActiveRecord::Base has_many :appointments end class Appointment < ActiveRecord::Base belongs_to :physician end And

[Rails] polymorphic_path not getting generated

2011-03-01 Thread skt
Folks, I am trying to use the Savage Beast plugin in a polymorphic way. I have setup my model as below # Leaving out other details from models class Forum < ActiveRecord::Base has_one :recent_topic, :class_name => 'Topic', :order => 'sticky desc, replied_at desc' belongs_to :forum_owner, :po

[Rails] Designing Relation Ship Between Different Models

2011-03-01 Thread Sai Babu
Hi I have One Problem For Example if You Take Category has_many :products Here For Category i have soap as example for products i am taking Santoor , Lux and Rin soaps as products. Here Again Both Lux and santoor comes under Bathing soaps. Rin Soaps Comes under Washing Soaps So these are s

Re: [Rails] Re: render :collection calling partial with phantom object?

2011-03-01 Thread Lorenzo Brito Morales
actually i have done somethign similiar these is my code <%= @todo.todostags.build %> <%= form_for(@todo) do |f| %> <%= f.submit %> here the todo model class Todo < ActiveRecord::Base has_many :todostags, :foreign_key =>"todos_id" , :primary_key =>'id' accepts_nested_attributes_for

[Rails] Unauthorized Access

2011-03-01 Thread Chandu80
Hello All, I have recently begun working on RoR. I am working on a microblogging application.I have a timeline where messages posted by users and his/her followers are being displayed.There is a facility for the logged in user to reply to those messages.(A reply button is present).When I click on a

[Rails] How to add a feature to an existing Rails project

2011-03-01 Thread kracekumar ramaraju
I have recently downloaded a new project(open source),i found certain features missing like blog,forum ,chat etc.. ..so I like to add those features to the project .My problem if run 'rails forum 'it will create a new rails project but i want to add to the existing project. I have found busines

[Rails] Couldn't find 'rspec' generator

2011-03-01 Thread Tushar Gandhi
Hi, I am trying to learn the RSpec but unfortunately I found all the tutorials which are very old. Is anyone have latest tutorial? I am following some tutorial, I have followed the following steps:- 1) gem install rspec 2) gem install rspec-rails 3) ./script/generate rspec I am getting an error

Re: [Rails] Devise gem issue

2011-03-01 Thread Jim Ruther Nill
On Wed, Mar 2, 2011 at 10:52 AM, Prasad B. wrote: > Hi , >I install Devise(1.0.9) gem for rails 2.3.8 version it is install > successfully and working fine . But i am not able to send mails to users > after signup. Let me please help me how to send mails using devise gem . > > you should sear

[Rails] Devise gem issue

2011-03-01 Thread Prasad B.
Hi , I install Devise(1.0.9) gem for rails 2.3.8 version it is install successfully and working fine . But i am not able to send mails to users after signup. Let me please help me how to send mails using devise gem . Thanks in advance. -- Posted via http://www.ruby-forum.com/. -- You recei

[Rails] Rails guides has_many :through example

2011-03-01 Thread zindelo
Using the rails guides has_many :through example at http://guides.rubyonrails.org/association_basics.html#the-has_many-through-association , what is the best approach to writing the nested model form that would go with the example? Physician == Name: Physician Appointments ==

Re: [Rails] Re: elationship between ruby on rails and html/css?

2011-03-01 Thread radhames brito
On Tue, Mar 1, 2011 at 2:31 AM, Karthikeyan wrote: > OK, you put HTML and CSS code into a file and name it something.html , > save it and open in a browser and you see a beautiful web page. > > Continuing with what Karthikeyan said , you will see a static beautiful page, like a MS word document

Re: [Rails] Re: missing attribute during initialization

2011-03-01 Thread Carl Youngblood
In fact, it appears that activerecord/lib/active_record/base.rb (rails 2.3.8) is calling after_initialize on line 1687 on a record that only has an id set. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send emai

Re: [Rails] Re: missing attribute during initialization

2011-03-01 Thread Carl Youngblood
I'm experiencing this error and it is happening during normal site operation, not just in tests. Haven't debugged it yet to see if it's attempting to instantiate an object. Will try... -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To

Re: [Rails] redesigning a php app

2011-03-01 Thread Bill Walton
Oops. Continuing... On Tue, Mar 1, 2011 at 6:08 PM, Bill Walton wrote: > Hi Kenneth, > > On Tue, Mar 1, 2011 at 5:48 PM, Kenneth Vogt wrote: >> I am redesigning a php app in RoR. I am brand new to both Ruby and >> Rails. There is a front end to the app with the typical MVC kind of >> interactio

[Rails] Re: Did rails or shoulda go insane on the inflection of 'taxes'?

2011-03-01 Thread David Kahn
Correction --- I had originally misnamed the models by plural, however once fixed now, still same problem. I think this is a shoulda issue as I can associate and access the models and associations correctly in the console. On Tue, Mar 1, 2011 at 5:37 PM, David Kahn wrote: > I have a model 'xp_ju

Re: [Rails] redesigning a php app

2011-03-01 Thread Bill Walton
Hi Kenneth, On Tue, Mar 1, 2011 at 5:48 PM, Kenneth Vogt wrote: > I am redesigning a php app in RoR. I am brand new to both Ruby and > Rails. There is a front end to the app with the typical MVC kind of > interactions between end users and a database. There is also backend > processing that happe

[Rails] redesigning a php app

2011-03-01 Thread Kenneth Vogt
I am redesigning a php app in RoR. I am brand new to both Ruby and Rails. There is a front end to the app with the typical MVC kind of interactions between end users and a database. There is also backend processing that happens independent of any user interaction. My question is, does the RoR frame

[Rails] Re: Installation Error?

2011-03-01 Thread Luis Lavena
On Mar 1, 4:47 pm, Gaba Luschi wrote: > Hi, > When I tried to install gems, I got the following error: > ERROR: While executing gem ... > Permission denied - ruby/1.9.1/drb > > and when I tried gem install rails, I got > > ERROR: Error installing rails: > rails requires activesupport <=2.2.3, ru

[Rails] Did rails or shoulda go insane on the inflection of 'taxes'?

2011-03-01 Thread David Kahn
I have a model 'xp_jurisdiction_taxes' which rails (3) created correctly. Another model 'xp_jurisdiction_states' has many :xp_jurisdiction_taxes. In my spec I am using a shoulda helper to test the association but get the following error. BTW, greped the whole project just in case and the string '

Re: [Rails] Re: Installation Error?

2011-03-01 Thread Bryan Crossland
You need to be an administrator on your Windows machine to install a gem. Are you an admin on your Windows system? On Tue, Mar 1, 2011 at 5:01 PM, Gaba Luschi wrote: > I'm using windows XP, and ruby is version 1.9.2 > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this messa

[Rails] Re: Installation Error?

2011-03-01 Thread Gaba Luschi
I'm using windows XP, and ruby is version 1.9.2 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this g

Re: [Rails] How to include the mail_to helper inside of a controller

2011-03-01 Thread Inverted
Ok turns out it's not simple_format, I forgot that I was using auto_link. Removing auto_link prevent the error. So now I need to figure out what I need to include in the controller to user auto_link -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Ta

Re: [Rails] How to include the mail_to helper inside of a controller

2011-03-01 Thread Inverted
Pavling, thanks for the repy! I've been stuck on this bug all morning... So I'm trying to understand how to get this working based on your suggestion. Here's the flow: My controller calls html_format(comment.content) which is inside of the application helper html_format, then calls simple_for

[Rails] Arel question / ActiveRecord / Windowed SQL queries

2011-03-01 Thread Kim.Toms
I have a table which has repeated entries for the same serial number, and the date for each row. I want to find the latest record for each serial number, and I was talking to a DBA about how to do this. He dictated the following query to me (MS SQL Server): with latest as ( select ROW_NUMBER()

Re: [Rails] How to include the mail_to helper inside of a controller

2011-03-01 Thread Michael Pavling
On 1 March 2011 18:41, Inverted wrote: > Hello, in my controller I need to format a json object using > simple_format, which is why I need to include several helpers. > > Any ideas on how to add it in? Coincidentally, I had to resort to using number_to_currency in a controller the other day (okay

[Rails] PgEast Content, Rails training + MongoDB!

2011-03-01 Thread Joshua D. Drake
Hello, The PostgreSQL Conference is pleased to announce that its East content is now up. East, held in NYC is from 03/22 - 03/25 and we have a full day RoR training on the 22nd. If using the most scalable and durable Relational (FOSS) database is up your alley, this is the conference is up your a

Re: [Rails] Can't get any server to run on windows

2011-03-01 Thread Laran Evans
That's terriffic. I'll give that a shot. Thanks! On Tue, Mar 1, 2011 at 9:46 AM, Roy Situmorang wrote: > Rails 3.0.5 requires Rack 1.2.1 which is not compatible with Mongrel 1.1.5. > So I suggest you to use Ruby 1.9,2 and Webrick which work in my windows box. > > Hope this helps. > > -- > You rec

[Rails] Re: Proper Location for AR Monkey-Patch (Rails 3)

2011-03-01 Thread Kendall Gifford
Okay, I did an edit of my linked monkey-patch. I can do a "rake db:migrate" and start a rails console now. I fixed on obvious bug I had. However, I'm forced to manually include the mysql adapter in my initializer for it to work. So, my overall question still stands... what is the correct idiomat

Re: [Rails] Installation Error?

2011-03-01 Thread Bryan Crossland
What version of ruby are you running and what OS are you on? B. On Tue, Mar 1, 2011 at 1:47 PM, Gaba Luschi wrote: > Hi, > When I tried to install gems, I got the following error: > ERROR: While executing gem ... > Permission denied - ruby/1.9.1/drb > > and when I tried gem install rails, I got

[Rails] Proper Location for AR Monkey-Patch (Rails 3)

2011-03-01 Thread Kendall Gifford
I'm trying to monkey patch active record (and more specifically the MySQL connection adapter) for a rails 3 app. Here is my attempt: https://gist.github.com/849849 It doesn't work. When I try to "rake db:migrate" or open a rails console or otherwise load the app, I get the following error: ...

[Rails] Re: Rails 3.0 App Deployment

2011-03-01 Thread Tsega
Hey Fred, I have finally given up, I mean on getting rails to work on this hosting account, I think I would have to use another programming language to make the app, or may be I 'll use CMS like Drupal. Believe me I am already dreading the decision but I have no time to fiddle with the server,

[Rails] Installation Error?

2011-03-01 Thread Gaba Luschi
Hi, When I tried to install gems, I got the following error: ERROR: While executing gem ... Permission denied - ruby/1.9.1/drb and when I tried gem install rails, I got ERROR: Error installing rails: rails requires activesupport <=2.2.3, runtime> what am I doing wrong? Thanks! -- Posted via h

[Rails] Quiz,chat

2011-03-01 Thread kracekumar ramaraju
I am new to rails framewrok ,i have experience in PHP and LInux background.I am looking for some tutorial or famous app to create a Quiz and chat .I have implemented quiz and flat file and db based quiz in PHP,but i wanted to do it in Rila.Looking forward for community help. . . -- You receive

Re: [Rails] Can't get any server to run on windows

2011-03-01 Thread Roy Situmorang
Rails 3.0.5 requires Rack 1.2.1 which is not compatible with Mongrel 1.1.5. So I suggest you to use Ruby 1.9,2 and Webrick which work in my windows box. Hope this helps. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this gro

[Rails] How to include the mail_to helper inside of a controller

2011-03-01 Thread Inverted
Hello, in my controller I need to format a json object using simple_format, which is why I need to include several helpers. So far I have the following in my controller: include ApplicationHelper include ActionView::Helpers::TextHelper include ActionView::Helpers::TagHelper Thi

Re: [Rails] Re: Rails 3.0 App Deployment

2011-03-01 Thread Tsega
Jaz if you are looking for a hosting plan that is affordable, has a good deal of features on a shared server. You should look into site5.com . They offer a solid service, I use them for hosting a Spree (E-commerce Ruby on Rails app ) based website. As Colin suggested they use passenger(I think

[Rails] Association data within a fields_for

2011-03-01 Thread zindelo
How do I use association data from within a fields_for? I've got a has many through relationship between users, schools and schools_users. A user can have multiple schools and a school has multiple users. In schools_users there is a user_role field in addition to the common user_id and school_i

Re: [Rails] how to delete with ajax

2011-03-01 Thread Markus Proske
Are you on Rails3 (can't access pastie from mobile)? <%= link_to 'destroy', product, :confirm => 'Are you sure?', :method => :delete, :remote => :true %> -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email t

[Rails] Re: Call Rest webservice in Ruby on Rails

2011-03-01 Thread exequiel
Hi, To send data from an action I do this: def send_mydata ... uri = URI.parse(link) net_http = Net::HTTP.new(uri.host, uri.port) net_http.open_timeout = timeout net_http.read_timeout = timeout net_http.use_ssl = (uri.scheme == 'https')# enable SSL/TLS if net_http.use_ssl? net_h

Re: [Rails] dev.rubyonrails.org is down

2011-03-01 Thread Xavier Noria
On Tue, Mar 1, 2011 at 6:26 PM, Josh wrote: > http://www.downforeveryoneorjustme.com/dev.rubyonrails.org > > ...and not just for me. That website was taken down a long time ago. The only existing backups were deleted towards the end of 2010. > So, rails:freeze:edge is baroken - could the powers

[Rails] Re: Re: Re: accessing the field of a model that belongs to another model using dot notation

2011-03-01 Thread John Merlino
> Also you have not said what happens if you include the test checking > for no blog_images. > > Colin I think I realized what the problem was. There were four records in the blog_posts table. At the time of the post, I only had one record in blog_images table that linked to first record of blog_

[Rails] dev.rubyonrails.org is down

2011-03-01 Thread Josh
http://www.downforeveryoneorjustme.com/dev.rubyonrails.org ...and not just for me. So, rails:freeze:edge is baroken - could the powers that be please take a look at this? Thanks! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post

[Rails] Re: Rails 3.0.5 has been released!

2011-03-01 Thread Ben Eggett
Stop using windows :) On Feb 27, 7:50 pm, Mallika Kamat wrote: > I'm new to rails and i want to use mysql with rails 3.0.5 on windows 7. > When I run the command > rake db:create > I get a pop up box saying that SQLite3.dll is missing. > > What should I do? > > -- > Posted viahttp://www.ruby-foru

[Rails] Re: render :collection calling partial with phantom object?

2011-03-01 Thread Fearless Fool
Frederick Cheung wrote in post #984616: > That sounds like you've got an unsaved metered_service somewhere (eg > by doing premise.metered_services.build) > Fred Yep, that's true. I based my code on the canonical blog posts / comments example, so in views/premises/edit.html.erb, I wrote: <%= for

[Rails] Can't get any server to run on windows

2011-03-01 Thread Laran Evans
I've installed rails 3.0.5 with ruby 1.8.7. I've installed mongrel, rcss and RedCloth. I've run netsh winsock reset. When I run with Webrick the server seems to start fine. But when I go to 127.0.0.1:3000 the request just hangs. When I run with mongrel, I get this: Tue Mar 01 06:58:05 -0800 2011:

[Rails] Re: Glossary module

2011-03-01 Thread Lee X.Y
I remember there is a gem acts_as_tags, Is it useful for you? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscri

Re: [Rails] Get Started!!

2011-03-01 Thread Hassan Schroeder
On Tue, Mar 1, 2011 at 5:42 AM, Dev wrote: > I have limited HTML & CSS knowledge but have a passion to innovate and > to create web apps. Is ruby the right choice? How much time do i need > to dedicate to understand scripting in RoR to create robust web apps? How damn long do I have to sit zazen

Re: [Rails] Get Started!!

2011-03-01 Thread Jazmin
It would be hard to tell you how much time you need, it depends on how much you know, how fast you learn.. Ruby is a great language to work with, it is elegant and powerful, you might be able to write good code relatively quick but you will not become an expert overnight, there is a lot to learn.

Re: [Rails] how to delete with ajax

2011-03-01 Thread niklas | brueckenschlaeger
Try adding a :method => :delete to the link. If you're using default resource routes, that should do the trick (also you don't need to use :action => 'destroy', but can instead pass discount_url(discount) as :url. -- niklas On Tue, 2011-03-01 at 07:22 -0800, Anthony wrote: > Hello, I'm trying to

[Rails] how to delete with ajax

2011-03-01 Thread Anthony
Hello, I'm trying to create a link to delete the record of a discount in my database. I have a page that lists them, each one rendered in a partial with a delete link. I'm trying link_to_remote, but it gives me this errors: No method responded to 28 (which is the record id) Here is a link to my c

[Rails] Unfiltered Password in Exception Notification

2011-03-01 Thread Daniel T
If someone submits a password in a form, and an error triggers exception_notification, the password is shown in plain-text under "rack.request.form_vars" (even though params is filtered properly). Using Rails 2.3. Best, --Daniel -- You received this message because you are subscribed to the Goog

[Rails] (2.3.5) removing validations

2011-03-01 Thread niklas | brueckenschlaeger
(sorry for misposting this to rubyonrails-core earlier) Today I tried to remove (actually overwrite) a validation from a model, from within a plugin. This was the original validation: validates_length_of :login, :maximum => 30 This was the only code I could come up with to replace it: def s

[Rails] Get Started!!

2011-03-01 Thread Dev
I have limited HTML & CSS knowledge but have a passion to innovate and to create web apps. Is ruby the right choice? How much time do i need to dedicate to understand scripting in RoR to create robust web apps? Thanks D -- You received this message because you are subscribed to the Google Groups

Re: [Rails] Re: Rails 3.0 App Deployment

2011-03-01 Thread Jazmin
If you don't mind me asking.. What hosting are you using? I am looking for a hosting provider offering passenger.. Any suggestions? On Tue, Mar 1, 2011 at 3:31 AM, Colin Law wrote: > On 1 March 2011 09:02, Tsega wrote: > > Hi Fred, > > > > Thanks for you help again, I wish I could try passenge

[Rails] Re: Main menu generated from database

2011-03-01 Thread Brian Ledsworth
I'd also recommend you cache the results so every page is not making a DB call every time. Brian -- 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 rubyonrail

Re: [Rails] CrowdCoded.com

2011-03-01 Thread Michael Pavling
On 1 March 2011 11:40, innosys wrote: > I’d like to recommend a new tool for Software/Hardware & IT > professionals. > http://www.crowdcoded.com You might want to crowd-code for a proof-reader... Also, funnily for a company promoting their "Real-Time Mobile Multiplayer Gaming", you use an OTS co

[Rails] CrowdCoded.com

2011-03-01 Thread innosys
I’d like to recommend a new tool for Software/Hardware & IT professionals. http://www.crowdcoded.com CrowdCoded allows all development cycle professionals (Developers ,Product/Project Managers, QA, Designers, Architects etc ) meet in one central point, and either post their projects or find a pro

Re: [Rails] Re: Re: Glossary module

2011-03-01 Thread Jim Ruther Nill
On Tue, Mar 1, 2011 at 7:57 PM, Jatin kumar wrote: > > > On Tue, Mar 1, 2011 at 11:37 AM, Pale Horse wrote: > >> Jatin Kumar wrote in post #984692: >> > On Tue, Mar 1, 2011 at 11:11 AM, Pale Horse >> > wrote: >> > >> > itself but a glossary listing will also be available. >> > >> > Honestly, I'm

Re: [Rails] Re: Re: Glossary module

2011-03-01 Thread Jatin kumar
On Tue, Mar 1, 2011 at 11:37 AM, Pale Horse wrote: > Jatin Kumar wrote in post #984692: > > On Tue, Mar 1, 2011 at 11:11 AM, Pale Horse > > wrote: > > > > itself but a glossary listing will also be available. > > > > Honestly, I'm not really sure what the best method of displaying the > > defini

Re: [Rails] Re: Re: Glossary module

2011-03-01 Thread Jim Ruther Nill
On Tue, Mar 1, 2011 at 7:37 PM, Pale Horse wrote: > Jatin Kumar wrote in post #984692: > > On Tue, Mar 1, 2011 at 11:11 AM, Pale Horse > > wrote: > > > > itself but a glossary listing will also be available. > > > > Honestly, I'm not really sure what the best method of displaying the > > definit

Re: [Rails] Re: Rails 3.0 App Deployment

2011-03-01 Thread radhames brito
On Tue, Mar 1, 2011 at 4:49 AM, Tsega wrote: > Thanks radhames, but I think RVM is for your local machine, I'm trying to > deploy my app on to a public shared hosting server, which I have no control > over. So RVM is not an option. Thanks for your help though. > > No rvm is not for local machines

[Rails] Re: Re: Glossary module

2011-03-01 Thread Pale Horse
Jatin Kumar wrote in post #984692: > On Tue, Mar 1, 2011 at 11:11 AM, Pale Horse > wrote: > > itself but a glossary listing will also be available. > > Honestly, I'm not really sure what the best method of displaying the > definition on the page would be; I don't want the definition to be > obtrus

Re: [Rails] Re: Rails 3.0 App Deployment

2011-03-01 Thread radhames brito
On Tue, Mar 1, 2011 at 4:49 AM, Tsega wrote: > Thanks radhames, but I think RVM is for your local machine, I'm trying to > deploy my app on to a public shared hosting server, which I have no control > over. So RVM is not an option. Thanks for your help though. > > Regards, > > Tsega > > -- > You

Re: [Rails] Re: Glossary module

2011-03-01 Thread Jatin kumar
On Tue, Mar 1, 2011 at 11:11 AM, Pale Horse wrote: > Jim ruther Nill wrote in post #984685: > > On Tue, Mar 1, 2011 at 6:56 PM, Jatin kumar > > wrote: > > > > I'm assuming that he wants to link them because I think there's no use > > just > > highlighting them. > > > > Ideally, I'd display the de

[Rails] Re: Glossary module

2011-03-01 Thread Pale Horse
Jim ruther Nill wrote in post #984685: > On Tue, Mar 1, 2011 at 6:56 PM, Jatin kumar > wrote: > > I'm assuming that he wants to link them because I think there's no use > just > highlighting them. > Ideally, I'd display the definition of the matched term in the Page itself but a glossary listing

Re: [Rails] Glossary module

2011-03-01 Thread Jim Ruther Nill
On Tue, Mar 1, 2011 at 6:56 PM, Jatin kumar wrote: > > > On Tue, Mar 1, 2011 at 10:52 AM, Jim Ruther Nill wrote: > >> >> >> On Tue, Mar 1, 2011 at 6:13 PM, Pale Horse wrote: >> >>> The application I'm currently working on has a Glossary model. The >>> Glossary table has columns for the term and

Re: [Rails] Glossary module

2011-03-01 Thread Jatin kumar
On Tue, Mar 1, 2011 at 10:52 AM, Jim Ruther Nill wrote: > > > On Tue, Mar 1, 2011 at 6:13 PM, Pale Horse wrote: > >> The application I'm currently working on has a Glossary model. The >> Glossary table has columns for the term and its definition. >> >> The application also has Pages which have c

Re: [Rails] Glossary module

2011-03-01 Thread Jatin kumar
On Tue, Mar 1, 2011 at 10:13 AM, Pale Horse wrote: > The application I'm currently working on has a Glossary model. The > Glossary table has columns for the term and its definition. > > The application also has Pages which have content. The content needs to > highlight any words that match a term

Re: [Rails] Glossary module

2011-03-01 Thread Jim Ruther Nill
On Tue, Mar 1, 2011 at 6:13 PM, Pale Horse wrote: > The application I'm currently working on has a Glossary model. The > Glossary table has columns for the term and its definition. > > The application also has Pages which have content. The content needs to > highlight any words that match a term

[Rails] Glossary module

2011-03-01 Thread Pale Horse
The application I'm currently working on has a Glossary model. The Glossary table has columns for the term and its definition. The application also has Pages which have content. The content needs to highlight any words that match a term in the Glossary table. There'll be a few ways to do this but

[Rails] Re: Rails 3.0 App Deployment

2011-03-01 Thread Frederick Cheung
On Mar 1, 9:02 am, Tsega wrote: > Hi Fred, > > Thanks for you help again, I wish I could try passenger but I'm making this > app for a client and he insisted on sticking with this particular host > company since they have been doing business for a long time. Talk about > customer loyalty! > > An

[Rails] Re: `rails plugin install` does not work (3.0.4)

2011-03-01 Thread Kivi
Hi Radhesh, I had the same problem. This is how I got it fixed: * first, just in case, upgrade to rails 3.0.5 (as root): - gem update - gem update --system * as root (not sure this is necessary, but it installed a missing gem): - gem install dynamic_form Then in my rails application I reinstall

[Rails] Re: Problem with IRB keyboard mappings on Windows running Rails Installer

2011-03-01 Thread TimD
Hi Mike, It's Windows XP on (I think) SP2, and the latest version of RailsInstaller - so 1.8.7-p330. Unfortunately I've not got control of the machines themselves - it's a University lab, so the deployments are done through some kind of centralised system. Rgds, Tim -- You received this messa

Re: [Rails] Re: Rails 3.0 App Deployment

2011-03-01 Thread Colin Law
On 1 March 2011 09:02, Tsega wrote: > Hi Fred, > > Thanks for you help again, I wish I could try passenger but I'm making this > app for a client and he insisted on sticking with this particular host > company since they have been doing business for a long time. Talk about > customer loyalty! > >

Re: [Rails] Main menu generated from database

2011-03-01 Thread Colin Law
On 1 March 2011 08:44, Fabrice Fabrisss wrote: > Hello, > > I'd like to have the main menu of my web application dynamically > generated from categories stored in a database. > > I created a partial for this menu: > (views/category/_list.html.erb) > > > <% @categories.each do |category| %> >  <%=

[Rails] Re: Rails 3.0 App Deployment

2011-03-01 Thread Tsega
Hi Fred, Thanks for you help again, I wish I could try passenger but I'm making this app for a client and he insisted on sticking with this particular host company since they have been doing business for a long time. Talk about customer loyalty! Anyways, where does rails keep the dispatch.fcg

[Rails] Re: Call Rest webservice in Ruby on Rails

2011-03-01 Thread gs84
On 28 fév, 21:30, Bill Walton wrote: > I use the Ruby Net::HTTP library to construct requests. > > Best regards, > Bill > Thanks to all for your answer. Bill, can you show me please how you you use the NET::HTTP library to call web service. Because i have used the NET::HTTP libray like the fol

Re: [Rails] Re: Rails 3.0 App Deployment

2011-03-01 Thread Tsega
Thanks radhames, but I think RVM is for your local machine, I'm trying to deploy my app on to a public shared hosting server, which I have no control over. So RVM is not an option. Thanks for your help though. Regards, Tsega -- You received this message because you are subscribed to the Google

[Rails] Main menu generated from database

2011-03-01 Thread Fabrice Fabrisss
Hello, I'd like to have the main menu of my web application dynamically generated from categories stored in a database. I created a partial for this menu: (views/category/_list.html.erb) <% @categories.each do |category| %> <%= category.name %> <% end %> And I call this partial in the main

Re: [Rails] Rails wiki down

2011-03-01 Thread Xavier Noria
On Monday, February 28, 2011, all4miller wrote: > Is the rails wiki (http://wiki.rubyonrails.org) down or abandoned? It has been taken down. -- 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 rubyonrai