[Rails] Re: download file located outside rails aaplication folder

2009-07-30 Thread Dhaval Phansalkar
Dhaval Phansalkar wrote: hi, how can i access/download a file located somewhere else outside rails application folder? suppose, file is in /tmp/ or /home/some_folder/ on linux, then what should be the path given for send_file? -DPP one of our perl script generates reports in

[Rails] Re: Functional Test Failing

2009-07-30 Thread shusseina
The test succeeds if I change the index method in my StoriesController class so it creates a Story object rather than retrieving one from the test database. Old index method... def index @current_time = Time.now @story = Story.find(:first, :order = 'RANDOM()') end New index

[Rails] Re: Functional Test Failing

2009-07-30 Thread Sijo Kg
Hi To get a good understanding read this. I think you are totally confused http://guides.rubyonrails.org/testing.html Sijo -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Rails] Re: Rails app going nuts at 100% cpu

2009-07-30 Thread Marnen Laibow-Koser
Phlip wrote: [...] All generic techniques - no I don't know the difference here between Webrick and Passenger - but they generally can't hurt! Total shot in the dark: resource acquisition deadlock? I seem to recall that Passenger runs a cluter of Mongrels, while I assume you're only

[Rails] Re: download file located outside rails aaplication folder

2009-07-30 Thread Sijo Kg
http://api.rubyonrails.org/classes/ActionController/Streaming.html#M000421 Sijo -- 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

[Rails] Store search paramters in database based on the current_user

2009-07-30 Thread Remco Swoany
Hi, This is my log-file output of the usercontroller. Processing UsersController#index (for 92.64.217.3 at 2009-07-30 08:57:46) [GET] Parameters: {commit=Search, date=, arrival=barcelona, departure=amsterdam} What is the correct way the store the params in de database based on the

[Rails] Re: attachment_fu + :path_prefix

2009-07-30 Thread Sijo Kg
'public/uploads' i want a dyname path for e.g :path_prefix = 'public/#{ current_user.id}', Have you tried this like :path_prefix = public/#{ current_user.id} Instead of single quotes use double quotes Sijo -- Posted via http://www.ruby-forum.com/.

[Rails] Re: attachment_fu + :path_prefix

2009-07-30 Thread Sijo Kg
:path_prefix = public/#{current_user.id} -- 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

[Rails] Re: Rails app going nuts at 100% cpu

2009-07-30 Thread Fernando Perez
Excellent investigation and evidence. I hope you continue, and then do something with it (i.e., a bug report to the appropriate forum). I will report any progress here. When you say 100%, do you mean the usage goes up and then bounces around, say between 95% and 100%? Or do you mean it

[Rails] Problem with RJS

2009-07-30 Thread Shahin Kordasti
Hi, I am trying to do a rails application that uses google map to allow users to specify longitude and latitude and then the google map should be updated to show that location which was specified. I am using observe_field on the text field like this: %= observe_field 'geo_loc_cords',

[Rails] Re: attachment_fu + :path_prefix

2009-07-30 Thread Abhishek shukla
Ok great things are working fine. but again i have a major concern when I am declaring it like :path_prefix = public/user_#{current_user.id} in background it save the image in the following folder structure public/user_/123/_image.jpg And i am looking something like

[Rails] Re: Problem with RJS (Solved)

2009-07-30 Thread Shahin Kordasti
Shahin Kordasti wrote: Hi, I am trying to do a rails application that uses google map to allow users to specify longitude and latitude and then the google map should be updated to show that location which was specified. I am using observe_field on the text field like this: %=

[Rails] = option in config.gem

2009-07-30 Thread Sijo Kg
Hi config.gem 'gemname', :version = '= 1.2.1' Could anybody please tell what this actually means? Suppose I have in my machine version 1.2.1 and 1.2.2 of the gem What expected is it uses 1.2.1 But what happened is it used 1.2.2 version Is this the default behavoiur or something wrong

[Rails] Rails 2.3.x and active_scaffold Installation

2009-07-30 Thread seenu
Hi, I have upgraded to rails 2.3 and active_scaffold plugin is not working. when i run this command it creates a active_sacaffold folder in vendor/ plugins, but its an empty folder. I googled but found no way to install it. Please help! --~--~-~--~~~---~--~~

[Rails] Re: Rails 2.3.x and active_scaffold Installation

2009-07-30 Thread seenu
the command i used C:\InstantRails\rails_apps\new_pbscript/plugin install git://github.com/activescaffold/active_scaffold.git On Jul 30, 3:49 pm, seenu desaise...@gmail.com wrote: Hi, I have upgraded to rails 2.3 and active_scaffold plugin is not working. when i run this command it creates

[Rails] Re: Rails 2.3.x and active_scaffold Installation

2009-07-30 Thread Conrad Taylor
On Thu, Jul 30, 2009 at 3:49 AM, seenu desaise...@gmail.com wrote: Hi, I have upgraded to rails 2.3 and active_scaffold plugin is not working. when i run this command it creates a active_sacaffold folder in vendor/ plugins, but its an empty folder. I googled but found no way to install

[Rails] Re: attachment_fu + :path_prefix

2009-07-30 Thread Sijo Kg
Give :storage = :file_system, :path_prefix = public/user_#{current_user.id} Sijo -- 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

[Rails] Re: Rails 2.3.x and active_scaffold Installation

2009-07-30 Thread seenu
No, i don't know exactly if it work with rails 2.3.3 Thanks On Jul 30, 3:57 pm, Conrad Taylor conra...@gmail.com wrote: On Thu, Jul 30, 2009 at 3:49 AM, seenu desaise...@gmail.com wrote: Hi, I have upgraded to rails 2.3 and active_scaffold plugin is not working. when i run this

[Rails] Re: = option in config.gem

2009-07-30 Thread jhaagmans
Well, you tell it to use a version higher OR equal to 1.2.1 ... If you want it to use only 1.2.1 it should say: config.gem 'gemname', :version = '1.2.1' Hope this helps! Kind regards, Jaap Haagmans w. http://www.relywebsolutions.nl On 30 jul, 12:43, Sijo Kg rails-mailing-l...@andreas-s.net

[Rails] Re: Store search paramters in database based on the current_user

2009-07-30 Thread jhaagmans
If I understand correctly you want to log these searches in the database, so you would probably want to do something like: Search.new(:date = params[:date], :arrival = params [:arrival], :departure = params[:departure], :user_id = current_user.id).save You might need to change current_user.id

[Rails] Re: download file located outside rails aaplication folder

2009-07-30 Thread Dhaval Phansalkar
Sijo Kg wrote: http://api.rubyonrails.org/classes/ActionController/Streaming.html#M000421 Sijo thanks sijo. i had tried that some days back and it didn't worked that time but it worked today.. strange. anyways... thanks for your time and help. btw, is there any risk putting the outside

[Rails] Re: Store search paramters in database based on the current_user

2009-07-30 Thread Remco Swoany
jhaagmans wrote: If I understand correctly you want to log these searches in the database, so you would probably want to do something like: Search.new(:date = params[:date], :arrival = params [:arrival], :departure = params[:departure], :user_id = current_user.id).save You might need to

[Rails] What is the best way for a board game ?

2009-07-30 Thread cedric salaun
Hello, I want a simple tool for draw a board on a web page, what thing i need to do that whith Ror ? For exemple I want draw a map (20x20) and allow click, and ajax move on the map.. like a lot of mmorpg game. Thx in advance. --~--~-~--~~~---~--~~ You received

[Rails] Problems with Redbox

2009-07-30 Thread Rafael Roque
Hi all, When I save a record I´m trying to display a success message in a popup window using Redbox.However,what is happening is that the record is saved but the redbox popup stays in a loading screen ad eternum.What could be the problem? Thanks, Rafael Roque -- Posted via

[Rails] how to use yaml files in the view

2009-07-30 Thread Lakshmi Narayana
hi all, I am having a client request in this way.. there will be a wizard in which a set of questions comes in each stage.. but these questions come from yaml file, where the client should be frequently making changes.. regards, ln --~--~-~--~~~---~--~~ You

[Rails] Re: Rails 2.3.x and active_scaffold Installation

2009-07-30 Thread Rick
What version of Ruby are you running? On Jul 30, 7:22 am, seenu desaise...@gmail.com wrote: No, i don't know exactly if it work with rails 2.3.3 Thanks On Jul 30, 3:57 pm, Conrad Taylor conra...@gmail.com wrote: On Thu, Jul 30, 2009 at 3:49 AM, seenu desaise...@gmail.com wrote: Hi,

[Rails] How can I change member action names on routes?

2009-07-30 Thread John Smith
I have some controllers with member/collection actions. I want to change the name of those actions on the routes, so I can translate the action /search to German, for example. How can I do it? I will appreciate any help. -- Posted via http://www.ruby-forum.com/.

[Rails] Re: How can I change member action names on routes?

2009-07-30 Thread John Smith
Currently I am using Rails 2.2.2 and I shoul not change it. -- 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

[Rails] How to display data in grid format?

2009-07-30 Thread Vikas Gholap
Hi all, I have a problem that i want to print data in grid (table format) following is my partial file named _coupon.haml.html -coupon_template.each do |template_data| -coupon.initializeFromTemplate(template_data) #div{:style=border: solid; border-color: gray; width: 310px;}

[Rails] Re: How can I change member action names on routes?

2009-07-30 Thread Gavin
map.resource :search, :controller = search_controller map.suche suche, :controller = search_controller, :action = new Is that what you're looking for? Gavin http://handyrailstips.com On Jul 30, 2:23 pm, John Smith rails-mailing-l...@andreas-s.net wrote: I have some controllers with

[Rails] Re: How can I change member action names on routes?

2009-07-30 Thread John Smith
Gavin Morrice wrote: map.resource :search, :controller = search_controller map.suche suche, :controller = search_controller, :action = new Is that what you're looking for? Gavin http://handyrailstips.com On Jul 30, 2:23�pm, John Smith rails-mailing-l...@andreas-s.net Thanks,

[Rails] How to print data with out rendring page?

2009-07-30 Thread Vikas Gholap
Hi all, I have following code in haml form that print current webpage I call this page from another page like user profile page like =link_to 'Print', print_user_path(@user) this calls print.html.haml print.html.haml -- %script print(); =ALL DATA TO PRINT

[Rails] Data Modeling (sorry - sort of long)

2009-07-30 Thread Marion T
Hello I am not a developer. I have a project that I plan to have developed (in RoR) for a web-application to offer as a SaaS, and have spoken with several developers, but, until I have confirmed interest in the project, I cannot have it written. In the meantime, I am preparing a presentation

[Rails] Re: How can I change member action names on routes?

2009-07-30 Thread John Smith
I would like to cotinue using REST search_articles_path -- 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

[Rails] help passing an id from a collection_select to my method

2009-07-30 Thread D
Help, I'm trying to pass a course_id from a collection_select and can't figure out how to do it. If I hard-code my method: def move_stu Enrollment.update_all([course_id = ?, 12 ], :student_id = params [:student_ids]) ## end It works perfectly. The enrollment updates the student's

[Rails] Re: help passing an id from a collection_select to my method

2009-07-30 Thread Frederick Cheung
On Jul 30, 9:54 am, D demetri...@hotmail.com wrote:s: def move_stu   Enrollment.update_all([course_id = ?, id ], :student_id = params [:student_ids])   ## end but all that passes in is a random 8 digit id from ??? (not the :id from the collection_select) The id you are using there

[Rails] email client

2009-07-30 Thread Kentor
I have setup a mail server on my server that uses IMAP/POP3 with virtual users with MySQL. I'm trying to find a very basic ruby/flex email client to work with this setup. I'm using Flex on Rails. I'm not too sure how to go about implementing an email client...

[Rails] Re: How can I change member action names on routes?

2009-07-30 Thread Gavin
Sorry - there was a typo in my first example: :controller = search - not :controller = search_controller using map.search search, :controller = search, :action = new map.suche suche, :controller = search, :action = new should mean that both /suchen and /search route to the new search action I

[Rails] Re: Nested form is giving me the wrong params

2009-07-30 Thread Matt W.
Yet another stupid mistake. I wasn't keeping track of my partials and I had nested my nested form, thus creating the extra level of params. Sheesh On Jul 26, 8:14 pm, Matt W. m...@squid37.com wrote: I'm not saving anything before the new nested instance is created. I didn't write the piece

[Rails] rails, gmail client and mass-emailing failure

2009-07-30 Thread nico itkin
Hello, I build from scratch an email componenent to my webapp using actionmailer. All my single email went to destination, but when I try to send mass-emailing from the console, it sends few then crash as follow : Any idea ? Thanks in advance !! 221 2.0.0 closing connection 28sm928123eye.4\r\n

[Rails] Re: Rails app going nuts at 100% cpu

2009-07-30 Thread Zach Karpinski
Passenger uses mongrel? Is that really true? I have no idea but on the modrails.com site it lists Passenger as being faster than mongrel while running a couple apps. I'd almost have to say this isn't true, if not because of the performance difference, then because it shares none of the

[Rails] Re: Rails app going nuts at 100% cpu

2009-07-30 Thread Marnen Laibow-Koser
Zach Karpinski wrote: Passenger uses mongrel? Is that really true? I thought I had read that Passenger used Mongrel internally, but on reading the description of the architecture, I think I may have been mistaken. Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org --

[Rails] Re: Rails 2.3.x and active_scaffold Installation

2009-07-30 Thread Marnen Laibow-Koser
seenu wrote: the command i used C:\InstantRails\rails_apps\new_pbscript/plugin install git://github.com/activescaffold/active_scaffold.git Do you have a git client installed and in your path? Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org -- Posted via

[Rails] Offline documentation for ruby on rails

2009-07-30 Thread Aashish Kiran
hi, can any one tell how to generate Offline documentation for ruby on rails on windows -- 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

[Rails] Proxy settings for rails apps

2009-07-30 Thread Ritvvij
My app calls a few web services. Sometimes when I move my laptop to a proxy-ed internet area, the rails app fails. Do I need special settings for proxy? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails:

[Rails] Re: Data Modeling (sorry - sort of long)

2009-07-30 Thread Marnen Laibow-Koser
Marion T wrote: Hello I am not a developer. I have a project that I plan to have developed (in RoR) Why have you chosen Rails before finding a developer? Rails is great, but in most cases it's more important to find a good developer, and let him or her pick the technology. (Of course, if

[Rails] to_xml

2009-07-30 Thread Wouter
Hey all, I have some problems creating a rendered xml file this is my source def show_friends @profile = Profile.find(user) @list = @profile.send('friends').find(:all, :limit = 20, :order = 'RAND()') @checkin = Checkin.find(:last, :conditions = {:profile_id = @list})

[Rails] Re: Offline documentation for ruby on rails

2009-07-30 Thread Marnen Laibow-Koser
Aashish Kiran wrote: hi, can any one tell how to generate Offline documentation for ruby on rails on windows Rake will do it for you -- look at rake -T to see the appropriate tasks. railsbrain.com and railsapi.com also offer downloadable versions of their Rails docs. Best, -- Marnen

[Rails] Rails Plugin for swfobject? - swf_fu

2009-07-30 Thread Alpha Blue
Hi all, I've been using a plugin called swf_fu which seemed fairly easy to implement for adding flash content to my rails app. However, I'm trying to pass a variable to my flash through rails and have the flash content pick it up. The variable is already retrieved in an earlier call to the

[Rails] Re: Data Modeling (sorry - sort of long)

2009-07-30 Thread Marion T
@Marnen - I understand exactly what you are saying, however I do not have the luxury of finding a developer, designing the application, and then making my presentation. I cannot afford to do that. I have to make an estimated presentation of what I envision it looking like. I am at RoR because

[Rails] Re: How secure are sessions?

2009-07-30 Thread Robert Walker
pharrington wrote: Sounds like you're thinking of a nonce http://en.wikipedia.org/wiki/Cryptographic_nonce, and if course, implementing one to secure your sessions would require... no changes to any protocols at all. However, implementing it is nowhere close to trivial; you need to be

[Rails] Re: Store search paramters in database based on the current_user

2009-07-30 Thread jhaagmans
Hi Jaap, Zie dat je ned bent, dus ik vervolg in het ned. Prima! Het gewenste proces is als volgt. 1)Gebruiker logt in 2)Zoekt in zoekbox op vertrek en aankomst + datum (bijv amst - barcelona, 22 maart 2010) 3)Waarde van de zoekbox (search[params] moeten worden doorgegeven aan

[Rails] Re: Data Modeling (sorry - sort of long)

2009-07-30 Thread Marion T
So, what I'm looking for is a platform-agnostic web-application designer? Marion --~--~-~--~~~---~--~~ 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] Re: Data Modeling (sorry - sort of long)

2009-07-30 Thread Rick
Marion, As is usually the case, the form of your question contains the germ of your answer. Keep in mind that you are the domain expert, you need to be able to converse with others at many levels and need to have a clear and consistent story for all. Focus on: 1) What is the unique hook that

[Rails] script/plugin install with github

2009-07-30 Thread joelmahoney
Hello, since switching from svn to git, I'm having trouble using script/ plugin install with github plugins. here's what happens: script/plugin install git://github.com/thoughtbot/paperclip.git Initialized empty Git repository in /path/to/project/vendor/plugins/paperclip/.git/ fatal: bad

[Rails] Re: Offline documentation for ruby on rails

2009-07-30 Thread Frederick Cheung
On Jul 30, 11:33 am, Hassan Schroeder hassan.schroe...@gmail.com wrote: On Thu, Jul 30, 2009 at 8:21 AM, Aashish Kiranrails-mailing-l...@andreas-s.net wrote: can any one tell how to generate  Offline documentation for ruby on rails on windows I don't know about the windows part, but on

[Rails] Re: script/plugin install with github

2009-07-30 Thread Alpha Blue
joelmahoney wrote: Hello, since switching from svn to git, I'm having trouble using script/ plugin install with github plugins. here's what happens: script/plugin install git://github.com/thoughtbot/paperclip.git Initialized empty Git repository in

[Rails] Re: Data Modeling (sorry - sort of long)

2009-07-30 Thread Marion T
Rick - this was really really really helpful. You're exactly right - and, in fact, gave me the exact answer I need. I do NOT need to show the input screens for this section AT ALL! All I need to show, for my current purposes are: the complex questions that I know my users will ask the system

[Rails] Can I turn off config.action_view.cache_template_loading in Production

2009-07-30 Thread jebw
I've got an app which users can edit the ERB templates for emails, the changes aren't taking effect till the app restarts though because config.action_view.cache_template_loading = true I've seen various comments that suggest it has to be true when in Production for thread safety - is Rails

[Rails] Re: Data Modeling (sorry - sort of long)

2009-07-30 Thread lardawge
I agree with Marnen. To add.. Your thinking to hard. Sounds like you have just enough knowledge to be dangerous. Find a good developer and then let him/her do there job. You come up with how the application should be interacted with and then let the developer figure out how that is going to

[Rails] Re: How to display data in grid format?

2009-07-30 Thread Ar Chron
Look at the AR docs for @collection.in_groups_of if you want to process the coupons in groups of 3. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] Form Tags

2009-07-30 Thread Pete Moran
This is a total newbie question, so my apologies! I am learning Ruby from the book Ruby for rails - the only issue is the examples seem to have been written in a earlier version of Ruby. The code in question is %= form_tag :controller = customer, :action = login %

[Rails] Re: script/plugin install with github

2009-07-30 Thread Rick
What version of ruby are you using? On Jul 30, 12:25 pm, joelmahoney joelmaho...@gmail.com wrote: Hello, since switching from svn to git, I'm having trouble using script/ plugin install with github plugins. here's what happens: script/plugin install

[Rails] Problem with jquery ajax call and js.rjs code

2009-07-30 Thread Max Williams
On one of my pages, i make a remote request to the update action of my school_subscribers controller with a jquery ajax call. In my log, i can see that the action executes fine, and the corresponding js.rjs file is evaluated (i'm logging from inside that file and it all seems fine). I can see

[Rails] Re: Can I turn off config.action_view.cache_template_loading in Production

2009-07-30 Thread Maurício Linhares
Do you understand the performance hit you'll get once you do that? - Maurício Linhares http://codeshooter.wordpress.com/ | http://twitter.com/mauriciojr On Thu, Jul 30, 2009 at 12:26 PM, jebwjebwilk...@gmail.com wrote: I've got an app which users can edit the ERB templates for emails, the

[Rails] How to structure a database table with arbitrary labels for the columns?

2009-07-30 Thread Patrick Doyle
I am starting to think about writing an RoR app to store some 2-D data. Most of the data are textual, although there could be a column of dates or a column of numbers here and there. The issue is: different data sets have different columns. Currently, the data are stored in spreadsheets. Many

[Rails] Re: after matching a regexp, how can I modify the pre-match string?

2009-07-30 Thread timr
I often use one liners to search and replace within strings: my string is a string.gsub(/(st.)/, 'big \1') = my big string is a big string Note two important syntax items: 1. put parentheses around the item to be referenced later... 2. Parenthetically captured items are accessible via \1

[Rails] Re: Form Tags

2009-07-30 Thread Pete Moran
Thanks Bill, I did try google first, but didn't find the correct answer :) OK - I tried what you said, but that seemed to give me a new problem :( %= form_tag {:controller = customer, :action = login} % pUser name: %= text_field customer, nick %/p pPassword: %= password_field

[Rails] Re: Rails Plugin for swfobject? - swf_fu

2009-07-30 Thread Alpha Blue
onSelfEvent (load) { victoryID = this.loaderInfo.parameters.victory_id; } Everything was fine. The issue was actually in the flash software itself. I use both macromedia and swishmax and swishmax2 and sometimes I forget that each passes variables a bit differently. The above should

[Rails] Re: Offline documentation for ruby on rails

2009-07-30 Thread Philip Hallstrom
can any one tell how to generate Offline documentation for ruby on rails on windows If you just want a copy of it and don't want to genereate it yourself... http://www.railsbrain.com/ Be nice though and download a copy rather than use up their bandwidth... Pretty nice interface to

[Rails] Re: Form Tags

2009-07-30 Thread bill walton
Hi Pete, It looks like you have more than one problem. For starters, what platform are you using? OS, Ruby, Rails ruby -v rails -v On Thu, 2009-07-30 at 19:39 +0200, Pete Moran wrote: Thanks Bill, You're welcome. I did try google first, but didn't find the correct answer :) OK - I

[Rails] Re: Form Tags

2009-07-30 Thread Rob Biedenharn
On Jul 30, 2009, at 12:51 PM, Pete Moran wrote: This is a total newbie question, so my apologies! I am learning Ruby from the book Ruby for rails - the only issue is the examples seem to have been written in a earlier version of Ruby. The code in question is %= form_tag :controller

[Rails] Re: Offline documentation for ruby on rails

2009-07-30 Thread Marnen Laibow-Koser
Hassan Schroeder wrote: [...] I don't know about the windows part, but on my system it's already there. Running gem server and going to http://localhost:8808 in a browser shows me the rdoc for all the installed gems, including Rails. Really? On my system, Rails is one of the gems that does

[Rails] Re: Complex finds - part 2

2009-07-30 Thread Matt Jones
The issue is that your generated query is missing parentheses. Why have you tried everything EXCEPT putting them in the SQL fragment? To wit: @debts = Debtortranstaxes.find(:all, :conditions = [taxauthid IN (?), @taxauthids]) --Matt Jones On Jul 29, 1:44 pm, Craig White craigwh...@azapple.com

[Rails] Re: Form Tags

2009-07-30 Thread bill walton
Hi Pete, On Thu, 2009-07-30 at 18:51 +0200, Pete Moran wrote: This is a total newbie question, so my apologies! No need. Welcome aboard! I am learning Ruby from the book Ruby for rails - the only issue is the examples seem to have been written in a earlier version of Ruby. Very common

[Rails] Problem with adding a new column to table

2009-07-30 Thread J46 S46
hi everyone. ok i have a little problem. I created a simple blog + comments system. i followd ryan bates tutorial on that one, maybe you've checked that screencast out once. anyway, i added a new colum to my comments table by entering ruby script/generate migration add_name_to_comment name:string

[Rails] Routes, sqlite3

2009-07-30 Thread Protos Jack
I have two different questions, I hope that's not a problem, if it is, I do two differents topics, sorry. First, I would like to delete a table of sqlite3. The problem is that I had a table cathegories created, but I delete the code. Now I created a new model cathegories and when I do the rake,

[Rails] Re: Data Modeling (sorry - sort of long)

2009-07-30 Thread Marnen Laibow-Koser
Marion T wrote: So, what I'm looking for is a platform-agnostic web-application designer? Marion Any good Web designer is (or can be) platform-agnostic. UI design and implementation are two different things. I often wear both hats on freelance projects, but usually in succession --

[Rails] Print UPS labels - Rails plugin or available web service?

2009-07-30 Thread Andy
Does anyone know of a Rails plugin or an available web service that allows for printing UPS shipping labels? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send

[Rails] Re: Print UPS labels - Rails plugin or available web service?

2009-07-30 Thread Marnen Laibow-Koser
Andy wrote: Does anyone know of a Rails plugin or an available web service that allows for printing UPS shipping labels? Perhaps UPS offers an API or web service? Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org -- Posted via http://www.ruby-forum.com/.

[Rails] Re: Print UPS labels - Rails plugin or available web service?

2009-07-30 Thread bill walton
On Thu, 2009-07-30 at 20:50 +0200, Marnen Laibow-Koser wrote: Andy wrote: Does anyone know of a Rails plugin or an available web service that allows for printing UPS shipping labels? Perhaps UPS offers an API or web service? A quick Google on 'UPS web service api' led me here:

[Rails] Re: Offline documentation for ruby on rails

2009-07-30 Thread Hassan Schroeder
On Thu, Jul 30, 2009 at 11:28 AM, Marnen Laibow-Koserrails-mailing-l...@andreas-s.net wrote: there. Running gem server and going to http://localhost:8808 in a browser shows me the rdoc for all the installed gems, including Rails. Really?  On my system, Rails is one of the gems that does

[Rails] Re: How to structure a database table with arbitrary labels for the columns?

2009-07-30 Thread bill walton
Hi Patrick, On Thu, 2009-07-30 at 13:24 -0400, Patrick Doyle wrote: I am starting to think about writing an RoR app to store some 2-D data. From your explanation / question below, I have to ask and do not mean to put you off but, are you an experienced software developer? If not, I'd

[Rails] Re: Problem with adding a new column to table

2009-07-30 Thread Marnen Laibow-Koser
J46 S46 wrote: [...] anyway, i added a new colum to my comments table by entering ruby script/generate migration add_name_to_comment name:string and when i look in my migrations file, it seems to have worked: class AddNameToComment ActiveRecord::Migration def self.up add_column

[Rails] Re: Problem with adding a new column to table

2009-07-30 Thread J46 S46
Marnen Laibow-Koser wrote: J46 S46 wrote: [...] anyway, i added a new colum to my comments table by entering ruby script/generate migration add_name_to_comment name:string and when i look in my migrations file, it seems to have worked: class AddNameToComment ActiveRecord::Migration

[Rails] Re: Can I turn off config.action_view.cache_template_loading in Production

2009-07-30 Thread Jeremy Wilkins
No - not really. How significant would it be? I know this has only become a problem since the app got upgraded to 2.2 - prior to that we must not have been caching the templates anyway. jebw 2009/7/30 Maurício Linhares mauricio.linha...@gmail.com: Do you understand the performance hit you'll

[Rails] Time.now and 1.day.ago style comparison

2009-07-30 Thread Will
Hi, I'm trying to use the ActiveSupport Time extension but running into a bit of trouble with the time zone. I'd like to test if a user record has expired using the Time .ago method, such as: def expired return true if self.activated 1.day.ago end Unfortunately I can't seem to use the .ago

[Rails] Re: Time.now and 1.day.ago style comparison

2009-07-30 Thread Philip Hallstrom
On Jul 30, 2009, at 12:38 PM, Will wrote: Hi, I'm trying to use the ActiveSupport Time extension but running into a bit of trouble with the time zone. I'd like to test if a user record has expired using the Time .ago method, such as: def expired return true if self.activated

[Rails] Re: How to structure a database table with arbitrary labels for the columns?

2009-07-30 Thread cnk
Adding columns via code isn't hard. You'll have to double check that the new columns are picked up in your objects without having to restart the server when operating in production mode. But the real question is, is there enough commonality between data sets that whatever you are trying to do is

[Rails] Re: Time.now and 1.day.ago style comparison

2009-07-30 Thread Will
Great thanks! That's working nicely. Will On Jul 30, 12:42 pm, Philip Hallstrom phi...@pjkh.com wrote: On Jul 30, 2009, at 12:38 PM, Will wrote: Hi, I'm trying to use the ActiveSupport Time extension but running into a bit of trouble with the time zone. I'd like to test if a user

[Rails] Re: Time.now and 1.day.ago style comparison

2009-07-30 Thread bill walton
Hi Will, On Thu, 2009-07-30 at 12:38 -0700, Will wrote: Time.now = Thu Jul 30 12:16:30 -0700 2009 1.hour.ago = Thu, 30 Jul 2009 18:16:34 UTC +00:0 Time.now = Thu Jul 30 14:47:09 -500 2009 Time.now.utc = Thu Jul 30 19:47:13 UTC 2009 HTH, Bill

[Rails] Re: script/plugin install with github

2009-07-30 Thread joelmahoney
ruby 1.8.6 (2007-09-23 patchlevel 110) [i686-darwin8.10.1] On Jul 30, 10:56 am, Rick richard.t.ll...@gmail.com wrote: What version of ruby are you using? On Jul 30, 12:25 pm, joelmahoney joelmaho...@gmail.com wrote: Hello, since switching from svn to git, I'm having trouble using

[Rails] Re: script/plugin install with github

2009-07-30 Thread joelmahoney
I've been using git clone to pull down plugins, but doesn't script/ plugin also run internal init scripts etc. that are sometimes included in the plugin itself? On Jul 30, 10:30 am, Alpha Blue rails-mailing-l...@andreas-s.net wrote: joelmahoney wrote: Hello, since switching from svn to

[Rails] request.env.to_hash.to_json breaking

2009-07-30 Thread subv3
Hi, I've been on this for a bit now trying to find out why this breaks but I can't. Hopefully someone else will have some idea. I've been compiling a hash of which one of the objects is request.env. I then call #to_json on the hash but it fails with: You have a nil object when you didn't

[Rails] Re: script/plugin install with github

2009-07-30 Thread Marnen Laibow-Koser
joelmahoney wrote: I've been using git clone to pull down plugins, but doesn't script/ plugin also run internal init scripts etc. that are sometimes included in the plugin itself? Yes. Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org -- Posted via

[Rails] Counti lines in Textarea / Wrap Hard not Working ?

2009-07-30 Thread Fabian
As I posted earlier, I want to count lines in a text area. I use the following function lines = texto.split(/\n/).size if texto !=nil But fails when one line of text "wraps" automatically to the next line so no "\n" mark is returned into the text. So i found the "wrap" attribute of

[Rails] Problem loading plugin that depends on another plugin

2009-07-30 Thread cnk
I am trying to extract some code I have written into a plugin (an engine actually, since I want to share the views to new apps). I really like the organization I see in the new Clearance engine - esp with respect to how they organize testing of the engine + testing the integration of the engine

[Rails] How do I stop a browser prompting with past options

2009-07-30 Thread John Small
Browsers try to be helpful and remember that when you've filled in an input field named email before it's been with g...@something.somewhere.com and they'll suggest that entry again. If you've used many different values for a named field, then they'll provide a drop down list of all the options

[Rails] Re: How do I stop a browser prompting with past options

2009-07-30 Thread Rob Biedenharn
On Jul 30, 2009, at 4:33 PM, John Small wrote: Browsers try to be helpful and remember that when you've filled in an input field named email before it's been with g...@something.somewhere.com and they'll suggest that entry again. If you've used many different values for a named field, then

[Rails] Re: How do I stop a browser prompting with past options

2009-07-30 Thread bill walton
Hi John, I've found a workaround, which is to give fields unique names, either by packing the input field name with some random chars, or something else that's unique, like the id of an order. But that is messy, horribly messy. There must be an easy way to do this. Maybe some param you can

  1   2   >