[Rails] Using captcha

2008-10-18 Thread Indu RS
Hello everyone, I'm trying to implement Captcha in my program.Anyone will please give me suggestion for using the best one,and the procedures for implementing it since I haven't used it before for my program. for the first time I am trying to use it. -- Posted via http://www.ruby-for

[Rails] Re: Convert Illustrator file to HTML or CSS for programming on Ruby?

2008-10-18 Thread Andrew Bloom
check out this place: http://www.xhtmlized.com/ there are other companies that do the same thing, unfortunately this is the only name i can remember right now. On Oct 18, 10:44 pm, "Carla DeLuca" <[EMAIL PROTECTED]> wrote: > thank you > > On Sat, Oct 18, 2008 at 3:17 PM, Alex <[EMAIL PROTECTED]>

[Rails] Does anybody out there use Litespeed?

2008-10-18 Thread [EMAIL PROTECTED]
I've heard good things about Litespeed but all the documentation I've found doesn't reflect the new 3.3 version. The older 2 and 1 versions are just so different. I've gone down the road with the old docs and it's always a dead end. I'd be happy to pay or trade code or some kind of programming fav

[Rails] Re: Convert Illustrator file to HTML or CSS for programming on Ruby?

2008-10-18 Thread Carla DeLuca
thank you On Sat, Oct 18, 2008 at 3:17 PM, Alex <[EMAIL PROTECTED]> wrote: > > Export it to Photoshop as a PSD, slice it up from there, then have > your programmer clean up the output and add the dynamic content. > > On Oct 17, 8:53 pm, carladeluxe <[EMAIL PROTECTED]> wrote: > > HI there, > > > >

[Rails] Re: How to capture generated HTML and sending it in e-mail

2008-10-18 Thread tadatoshi
Thank you, Phillip. I will try that. Sincerely, Tadatoshi On Oct 18, 9:36 pm, Phillip Koebbe <[EMAIL PROTECTED]> wrote: > Tadatoshi Takahashi wrote: > > Is there a way to capture the generated HTML (e.g. for show.html.erb) > > from inside a Rails application? > > Have a look at render_to_strin

[Rails] Re: How to capture generated HTML and sending it in e-mail

2008-10-18 Thread Phillip Koebbe
Tadatoshi Takahashi wrote: > Is there a way to capture the generated HTML (e.g. for show.html.erb) > from inside a Rails application? Have a look at render_to_string. Peace. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this messag

[Rails] Adding attributes to subclasses created using polymorphic associations

2008-10-18 Thread Evan
Good evening. I have a class, CustomerRequest, which I have subclassed into three other classes, all different types of customer requests. I chose to use polymorphic associations to map the subclasses in my database. For one of the subclasses, InstallRequest, I have generated a new model and def

[Rails] Re: Import of YAML files during rake?

2008-10-18 Thread Daniel
On Oct 19, 6:13 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Thanx, but using fixtures_create removes the current contense of the > database. > This is not for devel, this is in the production enviroment. > > regards > svend > I've only used the technique I mentioned to populate the tab

[Rails] Re: update _attribtutes fails to update, please help!

2008-10-18 Thread Frederick Cheung
Sent from my iPhone On 18 Oct 2008, at 21:10, rvruby <[EMAIL PROTECTED]> wrote: > > in my table ID is the primary key, what surprises me is, in the dev > log there is a ID and id with values 4 and null id is not the same as ID Fred > > > UPDATE `leaves` SET `FROM_DATE` = '2008-12-30', > `REAS

[Rails] Re: map.root doesn't run controller logic?

2008-10-18 Thread Christian Johansen
Yup, specifying the action as a string fixed it. Strange that the action name as symbol mapping would find the right template, but not the right controller action. Oh, well, guess I'm not supposed to do that anyway :) -- Posted via http://www.ruby-forum.com/. --~--~-~--~~--

[Rails] Re: How to Catch a Status 401 with htpasswd?

2008-10-18 Thread Mm Zz
Hi Patrick, Thank you so much for taking the time to look into the plugin's code and offering advice. I gave it a shot and it appears my rescue_from is being ignored: This is what i have in application.rb (just for testing) ##application.rb rescue_from Htpasswd::NotAuthorizedError, :with

[Rails] Re: map.root doesn't run controller logic?

2008-10-18 Thread Maurício Linhares
Try to change the mapping to: map.root :controller => "events", :action => "index" The root route does run the controller logic, maybe there is something mistyped in your routes.rb file. On Sat, Oct 18, 2008 at 7:50 PM, Christian Johansen <[EMAIL PROTECTED]> wrote: > > I have this in my routes.

[Rails] Passenger won't allow ActiveRecord to be extended ?

2008-10-18 Thread Greg Willits
After much tinkering, I have discovered that any module or plugin which extends ActiveRecord causes Passenger to fail (application won't load at all). Is this a known behavior? I have confirmed that my Passenger installation is working just fine with a simple Rails application that does not modi

[Rails] Re: IE doesn't take parameters generated by rails Firefox does

2008-10-18 Thread Mark Reginald James
Tam Kbe wrote: > Hello, > > I have this code in ruby on rails view (.html.erb): > > <%= text_field :poll, :option3_text, :size => 20, :class => 'topicField' > %> > > Which translates in HTML code to: > > name="poll[option3_text]"/> > > When I print the parameters passed from the browser insi

[Rails] map.root doesn't run controller logic?

2008-10-18 Thread Christian Johansen
I have this in my routes.rb: map.resources :events # ... map.root :controller => "events", :action => :index Surely enough, accessing http://localhost:3000/ renders the events/index.html.erb template. However, accessing http://localhost:3000/events renders the same page/template slightly differe

[Rails] Re: Convert Illustrator file to HTML or CSS for programming on Ruby?

2008-10-18 Thread Mikel Lindsaar
On Sun, Oct 19, 2008 at 9:17 AM, Alex <[EMAIL PROTECTED]> wrote: > > Export it to Photoshop as a PSD, slice it up from there, then have > your programmer clean up the output and add the dynamic content. Just make sure you export as CSS. The default (at least in CS 3 or below) is to export as a t

[Rails] Re: SVN help...

2008-10-18 Thread Matt Harrison
ressister wrote: > Thanks Matt, If anyone could provide an example of the branching > syntax, that would be helpful. I think this should be able to help you: http://svnbook.red-bean.com/en/1.1/ch04.html I believe the caveat is that you should have your repository using the recommended svn layo

[Rails] Re: Convert Illustrator file to HTML or CSS for programming on Ruby?

2008-10-18 Thread Alex
Export it to Photoshop as a PSD, slice it up from there, then have your programmer clean up the output and add the dynamic content. On Oct 17, 8:53 pm, carladeluxe <[EMAIL PROTECTED]> wrote: > HI there, > > My graphic designer and my programmer are having a communications > snafu, and it's my job

[Rails] Re: SVN help...

2008-10-18 Thread ressister
Alright, figured it out. Thanks again Matt for your guidance. On Oct 18, 5:48 pm, ressister <[EMAIL PROTECTED]> wrote: > Thanks Matt, If anyone could provide an example of the branching > syntax, that would be helpful. > > Regards, > -A > > On Oct 18, 4:11 pm, Matt Harrison <[EMAIL PROTECTED]> >

[Rails] Re: render :update / page.replace_html problem

2008-10-18 Thread Sjoerd Andringa
If you need this to be Ajaxified use remote_form_for instead, also check out: http://www.caboo.se/articles/2007/4/2/ajax-file-upload, as you're uploading file data. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because

[Rails] Re: how to make an ajax call to redirect

2008-10-18 Thread Sjoerd Andringa
Hi daociyiyou , Try this: def find_created_actions unless @if_login flash[:login]="..." redirect_to(:controller=>"login",:action=>"login") end if @if_login @[EMAIL PROTECTED] render :update do |page| page.replace_html 'element_id', :p

[Rails] Re: SVN help...

2008-10-18 Thread ressister
Thanks Matt, If anyone could provide an example of the branching syntax, that would be helpful. Regards, -A On Oct 18, 4:11 pm, Matt Harrison <[EMAIL PROTECTED]> wrote: > ressister wrote: > > Hi there, > > > I have a revision, #238 which I've since made changes to and committed > > so I'm now on

[Rails] Re: InstantRails and SQLite

2008-10-18 Thread Hassan Schroeder
On Sat, Oct 18, 2008 at 2:33 PM, CiriusMex <[EMAIL PROTECTED]> wrote: > > Well actually yes, FluxBB only works with SQLite That's not what the FluxBB web site says; the second bullet point at the home page's top is "Supports MySQL, PostgreSQL and SQLite". And what does any of this have to do wit

[Rails] Using view from different controller

2008-10-18 Thread Christoph Kr
Hi, I (newbie) work on an application that uses the last.fm api and request the top albums from Last.fm. so I have a lastfm_controller with the action caches_view: top_albums def top_albums get_albums(params[artist]) #gets top albums from end and a top_albums.rhtml that renders a list of t

[Rails] To access to documents from UNC Windows routes

2008-10-18 Thread Fernando Gonzalez macias
I have some documents pdfs UNC in a resource-type \\server\folder$\, to whom it would log in to download from the application in Rails. The server is different from where the application is housed. Is it possible to gain access to these documents from Rails? Or, only is possible to access to do

[Rails] Re: Extended tutorials?

2008-10-18 Thread Bharat Ruparel
Actually there is at least one that I know of and highly recommend. Please use the following link: http://www.buildingwebapps.com/podcasts Both Michael Slater and Christopher Haupt do an excellent job of walking you through Rails capabilities end-to-end. Admittedly, you won't be an expert by

[Rails] Re: InstantRails and SQLite

2008-10-18 Thread CiriusMex
Well actually yes, FluxBB only works with SQLite and I can't just update database.yml as FluxBB is not a Rails project, it's just a foro I wanna use ^^ Thanks for your answer by the way. Cheers, Olivier. On 17 oct, 15:17, Norm <[EMAIL PROTECTED]> wrote: > Is there something unique that SQLite ha

[Rails] Re: update _attribtutes fails to update, please help!

2008-10-18 Thread rvruby
I renamed the ID column to "id" and now instead of NULL I see value in the dev log for the update query. Not getting updated yet, but I think I will nail it down. Thanks for the help. On Oct 19, 1:10 am, rvruby <[EMAIL PROTECTED]> wrote: > in my table ID is the primary key, what surprises me is,

[Rails] Re: how to make an ajax call to redirect

2008-10-18 Thread Hassan Schroeder
On Thu, Oct 16, 2008 at 1:24 AM, daociyiyou <[EMAIL PROTECTED]> wrote: > > I have an ajax call method like following: > ## > def find_created_actions >unless @if_login > flash[:login]="请登录或注册" > redirect_to(:controller=>"login",:action=>"login") >end >

[Rails] Link_to + PUT + restful routes problem

2008-10-18 Thread Pod Caster
Hi, I'm trying to use link_to to access the Update action + add some extra parameters. I'm using the default rest routes. I can't get it working. When I use: <%= link_to ' Accept', invitation_path, :method => :put, :id => '1', :command => 'accept' %> I can get into the Update action but the pa

[Rails] Re: SVN help...

2008-10-18 Thread Matt Harrison
ressister wrote: > Hi there, > > I have a revision, #238 which I've since made changes to and committed > so I'm now on revision #240. I'm not happy with the direction that > I've gone since the two commits I've made, and I want #238 to be the > base. I wouldn't mind keeping #240 around, which

[Rails] Re: update _attribtutes fails to update, please help!

2008-10-18 Thread rvruby
in my table ID is the primary key, what surprises me is, in the dev log there is a ID and id with values 4 and null UPDATE `leaves` SET `FROM_DATE` = '2008-12-30', `REASON_FOR_CANCELLATION` = NULL, `BACKUP` = NULL, `EMP_ID` = 90268, `TO_DATE` = '2008-12-31', `ADDRESS` = NULL, `MGR_EMP_ID` = 9

[Rails] Re: update _attribtutes fails to update, please help!

2008-10-18 Thread Frederick Cheung
Is your primary key column not called id? If so you need to use set_primary_key Sent from my iPhone On 18 Oct 2008, at 20:53, rvruby <[EMAIL PROTECTED]> wrote: > > I included the <%= f.text_field :id%> just to verify. Even after I > removed it, it does not work. > > Please help. > > Process

[Rails] Re: update _attribtutes fails to update, please help!

2008-10-18 Thread rvruby
I included the <%= f.text_field :id%> just to verify. Even after I removed it, it does not work. Please help. Processing LeavesController#update (for 127.0.0.1 at 2008-10-19 01:18:59) [POST] Session ID: BAh7CjoRZW1wc21ncmVtcGlkaQOQXwE6DGNzcmZfaWQiJTViZTdjMmU1ZDk1%0AZWRlODc5OTM2YjMzMjdiNWRjNT

[Rails] SVN help...

2008-10-18 Thread ressister
Hi there, I have a revision, #238 which I've since made changes to and committed so I'm now on revision #240. I'm not happy with the direction that I've gone since the two commits I've made, and I want #238 to be the base. I wouldn't mind keeping #240 around, which i could just do with a local

[Rails] Re: TextMate Bundle using Gedit

2008-10-18 Thread Dejan Dimic
You should try the VIM also for ruby and Ruby on Rails development. http://rails.vim.tpope.net/ On Oct 18, 7:47 pm, "jason white" <[EMAIL PROTECTED]> wrote: > thank you all for your responses. i will have to give Gmate a try. I have an > old iBook G3 (it's 8 years old) and still works. I've bee

[Rails] Re: Is Rails 2.2 done?

2008-10-18 Thread Frederick Cheung
On Oct 18, 7:46 pm, Jochen Kaechelin <[EMAIL PROTECTED]> wrote: > http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/milestones > There's going to be at least one RC before the release and we haven't had that yet, so it's still a little while off. Getting close though! Fred --~--~-

[Rails] Re: Convert Illustrator file to HTML or CSS for programming on Ruby?

2008-10-18 Thread Michael Guterl
carladeluxe wrote: > HI there, > > My graphic designer and my programmer are having a communications > snafu, and it's my job to translate. > > The programmer is saying that if there's a simple conversion method to > take web page designs created in Illustrator and convert them to HTML > or CSS,

[Rails] Re: Import of YAML files during rake?

2008-10-18 Thread [EMAIL PROTECTED]
Thanx, but using fixtures_create removes the current contense of the database. This is not for devel, this is in the production enviroment. regards svend On Oct 18, 4:03 pm, Daniel <[EMAIL PROTECTED]> wrote: > On Oct 18, 11:19 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > I want to

[Rails] How to capture generated HTML and sending it in e-mail

2008-10-18 Thread tadatoshi
Hi, Is there a way to capture the generated HTML (e.g. for show.html.erb) from inside a Rails application? I need to send an e-mail to users with the same HTML as displayed on the browser. Thank you in advance. Tadatoshi --~--~-~--~~~---~--~~ You received this m

[Rails] Re: press enter to login

2008-10-18 Thread Michael Guterl
Applejus wrote: > Hi there, > > I have a login form and would like to know if there's a way to let the > user > press enter to submit the login information as an alternative to > clicking > the login button. > This is really a JavaScript question... http://www.htmlcodetutorial.com/forms/ind

[Rails] Is Rails 2.2 done?

2008-10-18 Thread Jochen Kaechelin
http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/milestones -- Jochen --~--~-~--~~~---~--~~ 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@goo

[Rails] IE doesn't take parameters generated by rails Firefox does

2008-10-18 Thread Tam Kbe
Hello, I have this code in ruby on rails view (.html.erb): <%= text_field :poll, :option3_text, :size => 20, :class => 'topicField' %> Which translates in HTML code to: When I print the parameters passed from the browser inside Ruby console, it prints correctly when using FireFox but it does

[Rails] Re: TextMate Bundle using Gedit

2008-10-18 Thread jason white
thank you all for your responses. i will have to give Gmate a try. I have an old iBook G3 (it's 8 years old) and still works. I've been thinking of buying a new macbook, but still haven't decided if i want to spend the money just to use TextMate. I really like the new Mac's, but it comes with a big

[Rails] Re: "www" redirection

2008-10-18 Thread Frederick Cheung
On 18 Oct 2008, at 18:02, John Clancy <[EMAIL PROTECTED] s.net> wrote: > > So, I am nearly certain that Alex's original solution will work but > if I > wanted to solve this within rails and avoid mucking with server files > (which always scares little old me :) ). > > Is there a way to rewri

[Rails] Re: "www" redirection

2008-10-18 Thread John Clancy
So, I am nearly certain that Alex's original solution will work but if I wanted to solve this within rails and avoid mucking with server files (which always scares little old me :) ). Is there a way to rewrite: link_to(:controller=>'site', :action=>'login) so it always links to https://xyz.

[Rails] Re: Sanitize add more tags

2008-10-18 Thread Frederick Cheung
On Oct 18, 5:57 pm, Fernando Perez <[EMAIL PROTECTED]> wrote: > FIXED: I had to restart the server, even in development mode. Changes to environment.rb and similar are never picked up without a restart. Fred --~--~-~--~~~---~--~~ You received this message becaus

[Rails] Re: Sanitize add more tags

2008-10-18 Thread Fernando Perez
FIXED: I had to restart the server, even in development mode. -- 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

[Rails] Re: "www" redirection

2008-10-18 Thread John Clancy
good point. wherever i say "redirects to" i should just say "links to". Fernando Perez wrote: > >>> http://xyz.com redirects to --> https://xyz.com/site/login GOOD! > > That's not redirection, that's simple URL generation. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~--

[Rails] Sanitize add more tags

2008-10-18 Thread Fernando Perez
I have added the following snippet to environment.rb: Rails::Initializer.run do |config| config.action_view.sanitized_allowed_tags = 'table', 'tr', 'td', 'th' end But it doesn't work, my tags still get removed. Any idea why it is happening? -- Posted via http://www.ruby-forum.com/. --~--~---

[Rails] Re: TextMate Bundle using Gedit

2008-10-18 Thread Philipe Farias
For what I know you can't use the TM bundles... But like mgutz pointed there's a lot of plugins. There is some alternatives to achieve something like TM bundles. Look at this links: - GMate - http://github.com/lexrupy/gmate/ (http:// alexandredasilva.wordpress.com/gmate/) - gedit-rails - http://gi

[Rails] Re: TextMate Bundle using Gedit

2008-10-18 Thread Philipe Farias
For what I know you can't use the TM bundles... But like mgutz pointed there's a lot of plugins. There is some alternatives to achieve something like TM bundles. Look at this links: - GMate - http://github.com/lexrupy/gmate/ (http:// alexandredasilva.wordpress.com/gmate/) - gedit-rails - http://gi

[Rails] Re: "www" redirection

2008-10-18 Thread Fernando Perez
>> http://xyz.com redirects to --> https://xyz.com/site/login GOOD! That's not redirection, that's simple URL generation. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "R

[Rails] Re: "www" redirection

2008-10-18 Thread John Clancy
typo below -- "httpx" in line 6 should be "https". John Clancy wrote: > one piece of good new is that my home page is http://xyz.com (ie, not > SSL'd). it's when they go to http://www.xyz.com and then click Login > and so are directed to the secure page https://www.xyz.com/site/login > that t

[Rails] Re: "www" redirection

2008-10-18 Thread John Clancy
one piece of good new is that my home page is http://xyz.com (ie, not SSL'd). it's when they go to http://www.xyz.com and then click Login and so are directed to the secure page https://www.xyz.com/site/login that there's a problem. http://xyz.com redirects to --> httpx://xyz.com/site/login G

[Rails] Re: update _attribtutes fails to update, please help!

2008-10-18 Thread Frederick Cheung
On Oct 18, 5:15 pm, rvruby <[EMAIL PROTECTED]> wrote: > I am trying to update a leave but the update does not work. Please let > me know where I am making the mistake.(Looked in to the log, id in the > update SQL statment shows NULL) > > View > > Editing Leaves > <% form_for :leaves, @leaves, :u

[Rails] Re: "www" redirection

2008-10-18 Thread Fernando Perez
For SSL redirection even the .htaccess trick won't work. The browser sees https, so it will first ask for the SSL certificate which will obviously fail as it is made for www.yoursite.com The only way is to purchase an additional certificate for yoursite.com -- Posted via http://www.ruby-forum

[Rails] update _attribtutes fails to update, please help!

2008-10-18 Thread rvruby
I am trying to update a leave but the update does not work. Please let me know where I am making the mistake.(Looked in to the log, id in the update SQL statment shows NULL) View Editing Leaves <% form_for :leaves, @leaves, :url => { :controller => "leaves", :action => "update" } do |f| %> <%

[Rails] Re: "www" redirection

2008-10-18 Thread Alex Jonsson
The easiest way to solve this I believe is to add the following information to your .htaccess file: Options +FollowSymlinks RewriteEngine on rewritecond %{http_host} ^xyz.com [nc] rewriterule ^(.*)$ http://www.xyz.com/$1 [r=301,nc] Lemme know if this does the trick for you! On Oct 18, 6:12 pm,

[Rails] Table trouble

2008-10-18 Thread Alex Jonsson
Guys, I need your awesome help again. I have two models - FlightType and FlightTypeCategory. FlightType belongs_to FlightTypeCategories. I want to present these in a table, the categories spanning over the flighttypes, like this: Flight Category 1 Flight Category 2 Flight Type 1 Flight Type

[Rails] "www" redirection

2008-10-18 Thread John Clancy
I'm sure this is an old topic with an obvious solution -- How can I automatically redirect users who go to "www.xyz.com" to "xyz.com" instead? My SSL certificate is for "xyz.com" so users get a scary error message if they try to go to "www.xyz.com". -- Posted via http://www.ruby-forum.com/. --

[Rails] Re: Extended tutorials?

2008-10-18 Thread Frederick Cheung
On Oct 18, 2:35 pm, MHC <[EMAIL PROTECTED]> wrote: > Hi group > > Sorry to admit that I'm an "architect" these days.  RoR came on my > horizon recently and I had to have a look.  Great framework, full > stop.  I built a single-table app and tooled with the css for sexiness > and it was impressiv

[Rails] Re: Invalid Response From an Upstream Server

2008-10-18 Thread doug
Thanks for the response. I really don't understand why there isn't more info available on this particular problem. Perhaps it is because (for whatever reason) it occurs so infrequently. As I said, I have quite a few deployments that are working just fine. It's just this one that has a problem;

[Rails] Re: render :update / page.replace_html problem

2008-10-18 Thread Frederick Cheung
On Oct 18, 4:55 pm, Tom Ha <[EMAIL PROTECTED]> wrote: > Well, this is the form that calls the action (so there is no "remote_" > to the form or submit tag). > If it's just a regular post (ie not using remote_form_for) you can't use render :update. Fred > <% form_for (:cv, :url => '/user/cvs',

[Rails] Re: Extended tutorials?

2008-10-18 Thread MHC
Thanks Mauricio That's a very good suggestion. Unfortunately I've spent many years in Communities where sharing is valued non-commercially. Smalltalk and Java communities collaborated effectively to share knowledge in the early days of the Internet, and despite the small bandwidths and small su

[Rails] Re: render :update / page.replace_html problem

2008-10-18 Thread Tom Ha
Well, this is the form that calls the action (so there is no "remote_" to the form or submit tag). <% form_for (:cv, :url => '/user/cvs', :html => { :multipart => true }) do |f| %> Upload A CV: <%= f.file_field :uploaded_data %> <%= hidden_field_tag 'applicationfile_id', @appli

[Rails] Extended tutorials?

2008-10-18 Thread MHC
Hi group Sorry to admit that I'm an "architect" these days. RoR came on my horizon recently and I had to have a look. Great framework, full stop. I built a single-table app and tooled with the css for sexiness and it was impressive for what it did. I need to see how this works in the bigger p

[Rails] Re: Extended tutorials?

2008-10-18 Thread Maurício Linhares
Instead of looking for tutorials, get a full blown book -> http://www.pragprog.com/titles/rails3/agile-web-development-with-rails-third-edition On Sat, Oct 18, 2008 at 10:35 AM, MHC <[EMAIL PROTECTED]> wrote: > > Hi group > > Sorry to admit that I'm an "architect" these days. RoR came on my > ho

[Rails] Re: Raw SQL from a Rake Task

2008-10-18 Thread MatthewRudy
you need to load the .sql file into ruby, and then call .execute on it. sql = File.open("some.sql").read sql.split(';').each do |sql_statement| ActiveRecord::Base.connection.execute(sql_statement) end We split it by ";" because a .sql file may contain multiple statgements, and you'll need to e

[Rails] Re: TextMate Bundle using Gedit

2008-10-18 Thread mgutz
I do not think so. As you probably know, there are several plugins (snippets, project browser?) you can enable to get close though. You might want to try Netbeans. I switch between Ubuntu 8.04 and OS X regularly and I prefer Netbeans over Textmate. It's that good. On Oct 17, 1:21 pm, "jason white

[Rails] Re: render :update / page.replace_html problem

2008-10-18 Thread Frederick Cheung
On Oct 18, 11:21 am, Tom Ha <[EMAIL PROTECTED]> wrote: > Hi there, > > I have this ajax problem, I'm desparately trying to debug since 1 entire > day now: > What's calling the action? If you've passed an :update option to link_to_remote (or remote_function etc...) then you must not use render :u

[Rails] Re: SOAP4R connection to a secured link(https)

2008-10-18 Thread Hassan Schroeder
On Sat, Oct 18, 2008 at 12:24 AM, Pallavi Gawas <[EMAIL PROTECTED]> wrote: >>> I have been trying to connect to a secured link(https) which is >>> pointing to a wsdl file. I am using SOAP4R for this. But it is giving me >>> an exception which says " hostname was not match with the server >>> cer

[Rails] is acts_as_commentable suitable for me?

2008-10-18 Thread Matt Harrison
Hi all, I'm working on a site that has different sections (documents, blog, projects etc) and each section should allow comments on the content inside. The comments must be quotable for users so conversation threads can be followed easily. Is acts_as_commentable a good solution for me? Would

[Rails] Re: Ruby on Rails Development Services

2008-10-18 Thread Jonathan Nelson
i completely agree. On Oct 17, 8:39 am, Ar Chron <[EMAIL PROTECTED]> wrote: > > Do any other regulars on this forum agree/disagree? > > Personally, I'd like to see any advertisements deleted right out of the > forum, with a nastygram sent back to the poster that re-stated the > policy and "do it

[Rails] Re: Import of YAML files during rake?

2008-10-18 Thread Daniel
On Oct 18, 11:19 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I want to import yaml files in to my project. > > I have tried with fixtures, but it deletes the current data of the > table. > I need a way to import yaml filen in to a exsistant table. > If you want to load yaml data into you

[Rails] better_nested_set getting error

2008-10-18 Thread cyrusdev08
Hello All I have already one installed plugin called . better_nested_set but I am getting error when I start my project "uninitialized constant Rails: Plugin::FooCom" What can I do here ..please help me --~--~-~--~~~---~--~~ You received this message because

[Rails] Re: rails and security

2008-10-18 Thread MR Damien
Borja Martín wrote: > http://weblog.rubyonrails.org/2006/8/21/filtered-parameter-logging > > Regards > That worked, thanks ! -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

[Rails] Import of YAML files during rake?

2008-10-18 Thread [EMAIL PROTECTED]
I want to import yaml files in to my project. I have tried with fixtures, but it deletes the current data of the table. I need a way to import yaml filen in to a exsistant table. regards svend --~--~-~--~~~---~--~~ You received this message because you are subscri

[Rails] tracking received emails like basecamp or github

2008-10-18 Thread John Stykes
I have an application which I configured to send and receive email. Both processes work at the basic level. The application can send email to users. Users can send email back to the application where I use the mail_fetcher plugin to poll the inbox. My problem is i am trying to determine the best

[Rails] Re: Invalid Response From an Upstream Server

2008-10-18 Thread Bharat
I think that it may be due to your current isp not adding a PTR record for your deployment server in its name resolution servers. The mail server will have trouble with reverse proxy lookup if this record is either not entered or is incorrect. I do not know the exact details of how it should be

[Rails] render :update / page.replace_html problem

2008-10-18 Thread Tom Ha
Hi there, I have this ajax problem, I'm desparately trying to debug since 1 entire day now: The Controller includes: [...] render :update do |page| page.replace_html 'coverletter_part', :partial => 'user/applicationfiles/coverletter_part' end [...] The View includes:

[Rails] Re: What is the better way for Scheduling?

2008-10-18 Thread Rob Lacey
I used to just use a script and cron for this type of thing, but recently I've been looking at using a this as a better solution http://railscasts.com/episodes/128-starling-and-workling All the best RobL Karthi kn wrote: > Hi, > > In my application, I need to send an email to some persons onc

[Rails] press enter to login

2008-10-18 Thread Applejus
Hi there, I have a login form and would like to know if there's a way to let the user press enter to submit the login information as an alternative to clicking the login button. Thanks! -- View this message in context: http://www.nabble.com/press-enter-to-login-tp20045312p20045312.html Sent

[Rails] What is the better way for Scheduling?

2008-10-18 Thread Karthi kn
Hi, In my application, I need to send an email to some persons once in every week. I want to make it as a background job. So which way/plugin will be better for this? Thanks in advance... -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You recei

[Rails] new to this group

2008-10-18 Thread Thiru
hi.. am thirugnanam, am new to this group i want to do the web development wil u plz give the details.. am passed out of this year B.tech IT i want to do the open source in this ruby plz teach me to do this --~--~-~--~~~---~--~~ You received this message becau

[Rails] Re: Question on model and fields in form

2008-10-18 Thread Freddy Andersen
In the model do before_save :concat_phonenumbers def concat_phonenumbers self.phone_number = "#{phone_int} " + "#{phone_area} " + "#{phone_number} " + "#{phone_extension}" end --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

[Rails] Re: SOAP4R connection to a secured link(https)

2008-10-18 Thread Pallavi Gawas
Hassan Schroeder wrote: > On Fri, Oct 17, 2008 at 3:03 AM, Pallavi Gawas > <[EMAIL PROTECTED]> wrote: > >> I have been trying to connect to a secured link(https) which is >> pointing to a wsdl file. I am using SOAP4R for this. But it is giving me >> an exception which says " hostname was not mat