Re: [Rails] Sending request from one rails application to other rails application for authentication

2011-03-23 Thread Narendra sisodiya
you can use REST way to communicate between both application. Use Active Resource, look at a this article http://www.ryandaigle.com/articles/2006/06/30/whats-new-in-edge-rails-activeresource-is-here On Thu, Mar 24, 2011 at 11:49 AM, dhanashree naik wrote: > Hi, > I am new to rails enviornment & f

[Rails] Sending request from one rails application to other rails application for authentication

2011-03-23 Thread dhanashree naik
Hi, I am new to rails enviornment & facing problem regarding authentication for my current project.I have one rails application where user creation & login is there.I also have another rails application in that also user creation & login is there.But now i want when i click on login action request

Re: [Rails] please help me run hello world in net bean ide

2011-03-23 Thread Narendra sisodiya
you have define an action called list for which you need to make an entry in your routes.rb file. PS: if you are creating an "Hello word" then you should try with CRUD actions first to get handy on rails. On Thu, Mar 24, 2011 at 11:27 AM, rahul rai wrote: > -- am really frustrated now > Rahul

Re: [Rails] please help me run hello world in net bean ide

2011-03-23 Thread rajeevsharma86
paste here your routes.rb code also and rails version On Thu, Mar 24, 2011 at 11:27 AM, rahul rai wrote: > -- am really frustrated now > Rahul > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to

[Rails] How can I change from ruby/mysql to mysql/ruby module? [Broken PIPE problem..]

2011-03-23 Thread cielo
Due to the random broken pipe error in rails, (probably due to timed out mysql connection) I am trying to use Mysql/ruby (which was coded with C) instead of ruby/mysql (which was coded in Ruby). Ruby/Mysql -> http://www.tmtm.org/en/ruby/mysql/README_en.html Mysql/Ruby -> http://www.tmtm.org/ja/my

[Rails] Occurrs in IE

2011-03-23 Thread seeni khan
Hi all, Here i have a problem with IE. My page having rightsidebar having some contents.I displayed the contents by copying from word using condition like this. It is working good in browser but the content not displayed in IE.plz help me as soon as possible -- *Thanks & Regards,* *RA

Re: [Rails] Problem in saving fields to database from csv using fastercsv

2011-03-23 Thread Surya
So what could be the possible solution? I wasted my whole day trying to figure out the issue. But didn't get anything related with this :( On Thu, Mar 24, 2011 at 12:20 AM, Frederick Cheung < frederick.che...@gmail.com> wrote: > > > On 23 Mar 2011, at 13:42, Surya wrote: > > Hi, > > First of all

[Rails] Problem with Cucumber, Rails 3.0.5

2011-03-23 Thread Felipe Espinoza Castillo
Hi Everyone! I just updated to rails 3.0.5 from rails 3.0.3, and I deleted my Gemfile.lock and runned "bundle install" it appears that cucumber got a update, because I had to run "rails g cucumber:install" again to fix an error... I'm using Factory Girl and Capybara too and I procured to includ

[Rails] EULA and downloading softwae

2011-03-23 Thread Ralph Shnelvar
I have a zip file I want to give my users. But first I need for them to agree to a End User License Agreement (EULA). I can't think of any way to prevent them from going to the download link and getting the file without agreeing to the End User License Agreement first. Any suggestions? -- Post

[Rails] install previous version of Zlib unde Ubuntu

2011-03-23 Thread Gerő Zoltán
Hi all, when I try "rails server" I got this error: `require': /lib/libz.so.1: version `ZLIB_1.2.3.3' not found With RVM Zlib 2.3.5 (current) version installed. What can I do? Please help, it's important. Many thanks, Zoli -- You received this message because you are subscribed to the Google

[Rails] Re: Cucumber+Capybara rails 3 issue (Don't know where exactly)

2011-03-23 Thread Alex Ct
Any resolution here? I am running into the same issue with rail 2.3.11. -- 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

Re: [Rails] Suggestions for Developing Reports App Using Rails

2011-03-23 Thread Colin Law
2011/3/23 José Tiburcio Ribeiro Netto : > Hi there guys, > > I'm in the need of developing an application to generate reports based on a > legacy database. > > Has anyone played in this area before? Any suggestions on how this can be > accomplished using Rails? Gems, tools, etc? > > Oh, the data

[Rails] Suggestions for Developing Reports App Using Rails

2011-03-23 Thread José Tiburcio Ribeiro Netto
Hi there guys, I'm in the need of developing an application to generate reports based on a legacy database. Has anyone played in this area before? Any suggestions on how this can be accomplished using Rails? Gems, tools, etc? Oh, the data store is an Oracle Database, which I think doesn't real

[Rails] Re: wrong constant name user error

2011-03-23 Thread Frederick Cheung
On Mar 23, 8:52 pm, John Merlino wrote: > > params[:controller].singularize.constantize.responds_to(:viewable) Presumably this is the line throwing the error. If params[:controller] is users then you'll be calling constantize on the string user. Constants have to start with a capital letter, so

[Rails] wrong constant name user error

2011-03-23 Thread John Merlino
Hey all, I have a table helper. Basically I want only certain tables to have a view link for each record. Im not sure the best way to achieve this but the way I can up with is to check if the model contains a certain method such as viewable and if it does, then you create the link in a table cell:

Re: [Rails] Problem in saving fields to database from csv using fastercsv

2011-03-23 Thread Frederick Cheung
On 23 Mar 2011, at 13:42, Surya wrote: > Hi, > > First of all very sorry for this long post. I am trying to save my csv data > to table items which is associated with Item model. It looks like the data you are importing UTF16 data. I'm guessing you were expecting UTF8 - I'd start by reading

[Rails] how to select all categories select name only , subcategories select name only, limit X items

2011-03-23 Thread Mark Moore
I have 3 models where 'Categories' have many 'Sub-Categories' and many 'Items' through 'Sub Categories'. What is a standard Rails 3 way of showing latest few 'items' from each 'sub-categories' that belongs to 'categories'. So in my view I'd have something like: category: Music sub-category: Cl

[Rails] Re: Help with libxml-ruby and SAX parser

2011-03-23 Thread Phil H.
Chris, the SAX Parser has an "on_characters" callback. You need to note when you see an on_start_tag for the tag "row". Then, in your on_characters callback, you use the characters it presents you. When you see an end tag for "row", you need to turn off your note. Get it? -- Posted via http

[Rails] Re: Test on destroy fails after 3.0.5 upgrade

2011-03-23 Thread djangst
Hey Fred, The model in question does have a HABTM association, but based on reading the ticket I thought it was unrelated because I don't have a dependent destroy set up and am only operating on the parent. Maybe not. I had looked at the new and old versions of destroy() but it appeared they were

[Rails] Re: act_as_list, each event has his own postion list

2011-03-23 Thread Frederick Cheung
On Mar 23, 4:47 pm, "Darek F." wrote: > I have problem with single :position column for all events. > How to sort my users in each own event. > Please help. > Are you looking for acts_as_list's :scope option? Fred > -- > Posted viahttp://www.ruby-forum.com/. -- You received this message beca

[Rails] act_as_list, each event has his own postion list

2011-03-23 Thread Darek F.
Hi, This is my project -> https://github.com/regedarek/ekorezerwacja This is my page -> http://ekorozwoj.heroku.com/events/1 I use act_as_list [code=ruby]class User < ActiveRecord::Base has_many :seats has_many :events, :through => :seats end class Event < ActiveRecord::Base has_many :seats

[Rails] Re: Test on destroy fails after 3.0.5 upgrade

2011-03-23 Thread Frederick Cheung
On Mar 23, 2:19 pm, djangst wrote: > After upgrading 3.0.4 -> 3.0.5 one of my tests now fails on an > assertion like 'assert !@product.destroy'. > > This tests a :before_destroy callback which simply returns false to > prevent deletion. I verified that the callback is firing and haven't > been a

[Rails] Test on destroy fails after 3.0.5 upgrade

2011-03-23 Thread djangst
After upgrading 3.0.4 -> 3.0.5 one of my tests now fails on an assertion like 'assert !@product.destroy'. This tests a :before_destroy callback which simply returns false to prevent deletion. I verified that the callback is firing and haven't been able to locate a difference between what's returne

[Rails] Re: rails 3 + mongrel + mime type swf[SOLVED]

2011-03-23 Thread Burebista
Frederick Cheung wrote in post #988845: > On 23 Mar 2011, at 07:32, Burebista wrote: > >> Hi there! >> >> I ran rails 3 application in localhost. In index.html.erb file I added >> >> > data="../public/player_mp3.swf" width="200" height="20"> > That path looks wrong - if the file is in public, the

Re: [Rails] rails 3 + mongrel + mime type swf

2011-03-23 Thread Frederick Cheung
On 23 Mar 2011, at 07:32, Burebista wrote: > Hi there! > > I ran rails 3 application in localhost. In index.html.erb file I added > > data="../public/player_mp3.swf" width="200" height="20"> That path looks wrong - if the file is in public, the URL for it is /player_mp3.swf Fred > >

Re: [Rails] obfuscated email not really obfuscated. but why not?

2011-03-23 Thread Frederick Cheung
On 23 Mar 2011, at 04:39, "sol.manager" wrote: > I have a page with an email address visible (so humans can print the > page if necessary). I used the following to code to obfuscate the > email. When I view the page source in my browser it appears all is > well, but I was told today by the SEO

Re: [Rails] RoR failure

2011-03-23 Thread Norbert Melzer
But is NetBeans still usable? If I recall correctly, then RoR was dropped from Netbeans version 7. This announcement came about the same week I realized that rails got to Version 3. Also I dropped NetBeans the same day as RoR-Support was dropped, so I cant verify my next saying, but I would say tha

[Rails] rails 3 + mongrel + mime type swf

2011-03-23 Thread Burebista
Hi there! I ran rails 3 application in localhost. In index.html.erb file I added However, when Mongrel server sends swf resource with Content-Type:text/html; charset=utf-8, and because of this nothing is displayed in browser. How can I configure mongrel(I use it only in localhost)