Thank you for everyone's reply.
I finally made it work.
Here's the steps I did.
sudo gem uninstall mongrel
sudo gem uninstall fastthread
sudo gem install mongrel
sudo gem install fastthread
As I'm not that experienced with this, I'll assume that one or the other
installation was bad.
I found
Sorry about that.
OS: Mac
At the rails project root directory, using the Terminal, "script/server
mongrel".
When I say "nothing" I mean a blank screen. The cursor goes to the next
line and that's it.
I've also used "ruby script/server mongrel -debug" with the same
results.
When I interrupt
Thank you for the reply.
Yes, after 1 minute of nothing.
John
--
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-t...@googlegroups.com.
To unsubscr
Maybe a gem list would help too.
- Gems -
*** LOCAL GEMS ***
acl9 (0.12.0)
actionmailer (2.3.5, 2.3.4, 2.2.2, 1.3.6)
actionpack (2.3.5, 2.3.4, 2.2.2, 1.13.6)
actionwebservice (1.2.6)
activerecord (2.3.5, 2.3.4, 2.2.2, 1.15.6)
activerecord-oracle-adapter (1.0.0.9250)
activeresource (2.3.5, 2.3.4,
Hello all,
I'm have a problem starting Mongrel.
I get the following...
user-fc0e6f:ProjectDB johnmcleod$ script/server mongrel
^C/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/gems.rb:11:in
`require': Interrupt
from /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:17
from /Libr
Hello all,
My 5th month with Ruby on Rails is over and on to #6, but still
learning.
I have an application...
Rails 2.3.5
Ruby 1.8.7
I have a jQuery dialog box that gives the user the option to "create" a
new project or "Cancel".
When "Create New" is clicked, a new browser window is opened with t
Hello all,
I've been looking now for several days for an easy to use progress bar
plugin or tutorial. I have Paperclip installed and it works great.
My production server runs on Apache and Mongrel.
It's amazing that there's no easy set up progress bar plugin or gem out
there. I have seen "SWFUpl
I agree with you.
I had the application working fine with SQLite and then he (not just he
but the department) wanted the Oracle migration.
The reason being is the department is a big Oracle house, even though
they have apps with MS-SQL and mySQL.
Oh, I did create a sequence also. All works fo
Well,
I just added an PK ID into the joined table and good to go.
Thanks John
--
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-t...@googlegroups.c
Hello all,
I'm in my 5th month on Ruby on Rails and still learning.
I have an application that works fine in sqlite3 and then the boss says
he wants it migrated to Oracle.
Now, I know very little about Oracle, enough to get into trouble.
When I did the migration everything went haywire. Well, I'
>> Have you actually tired to store the 13 K byte string in a CLOB field?
I did a simple copy/paste of the 13K data into the CLOB field and it
worked fine.
I checked the "show" view and the data is there.
John
--
Posted via http://www.ruby-forum.com/.
--
You received this message because yo
Thanks for the reply.
> I would hope that the Ruby Oracle database
> adaptor would take care dealing with the CLOB field.
I had the standard Oracle Adapter but decided to install the Oracle
Enhanced Adapter.
> Have you actually tired to store the 13 K byte string in a CLOB field?
No, next th
Thank you for replying.
I don't quite understand what you're doing.
What do you mean by...
>I'm guessing you'll need to change the value into it's ready-to-store binary
>>format."
John
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the
Hello all,
I'm stuck again. I'm in my 5th month of Ruby on Rails and getting
better but...
I'm uploading a .csv file using Paperclip and FasterCSV, then processing
the file after the upload is complete.
Small files work fine. I tested a larger file and found that one cell
had 13,000 chars. need
Thanks for help.
John
--
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-t...@googlegroups.com.
To unsubscribe from this group, send email to
rubyo
if I include ":include => :activity_type", then I get the name.
debug @activities
- !ruby/object:Activity
activity_type: &id001 !ruby/object:ActivityType
attributes:
name: Budgeting
created_at: 2010-01-25 14:38:25
updated_at: 2010-01-25 14:38:25
id: "1"
attribute
Thanks Mat,
That did it.
I checked with debug and how do I get the type Name?
John
--
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-t...@googlegro
Hello all,
I about to pull my hair out.
I have two models "Activities" and "Activity_types"
Activities
--
id
name
activity_type_id
Activity_types
--
id
name
- Associations -
class Activity < ActiveRecord::Base
has_many :activity_types
end
class ActivityType < ActiveReco
Well,
I found out that I just do this...
m = Array
Model.find(m)
That gives me my results.
Thanks,
John
--
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 r
Hello all,
I'm on my 4th month with Ruby on Rails. I'm doing good, I think, but
have a long way to go.
I have an array with several IDs.
Array
[1,4,6,10,40]
I wish to perform a find() on a Model, on each of these IDs, then be
able to send the results to a view.
Thank you for any help on this.
Hello all,
I have a helper function called "add_link" which will insert html to a
partial.
- ProjectsHelper -
def add_link(name, irb=nil)
link_to_function name do |page|
page.insert_html :top, :irbs, :partial => 'projects/irb', :object
=> Irb.new, :locals => { :irb_id => irb }
end
I removed the Prototype window and went will jQuery UI Dialog instead.
It was easier to work with and more examples in regards to what I'm
trying to accomplish.
JohnM
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
o
Well, I answered this one on my own.
In my "applications.js" file, I have a function that opened the jquery
dialog box.
- application.js -
function addIrb(id){
jQuery.ui.dialog.defaults.bgiframe = true;
jQuery(function(){
jQuery('#add').dialog({
title: 'Search IRB Records',
Hello all,
I have a jQuery dialog that renders a search form using
"form_remote_tag"
- _searchDialog.html.erb -
Please type IRB number or part of a number
If search does not retrieve desired results, please refine search.
<% form_remote_tag :update => "searchResults",
lts. Like below...
IRB Search Results
IRB ID Title PI Full NameAction
00-010 Project Title ... John Mcleod Add IRB
The "Add IRB" is a hyperlink to return the IRB ID to the "new.html.erb"
as a filled text field. I will add a littl
Thanks for the reply.
>Without looking over all of the code here, you more than likely are
>missing an :include. I've added it above.
Sorry, the only missing code would be in the project model.
- project model -
def self.search_all_projects(search, page)
# searchlogic gem used
# project_numbe
Hello all,
This will be my 3rd month with Ruby on Rails. I do all my developing on
Mac with TextMate.
I'm now totally confused.
I have a one to one relationship. Projects and study_type
- project model -
belongs_to :study_type
- study_type model -
has_one :project
I can display correct data in my
Hello all,
I'm having problems creating a new record with has_many :through
My application is quite complicated so I'll try to explain it as easy as
I can.
I have a many to many relationship with Projects, IRBs and Reviews.
Where reviews is the joined model.
In the new project view, I have a li
Hello all,
I'm in my third month of Ruby on Rails. I think it's coming along
fairly well.
My current issue is this.
I'm do a search based on string data some of which is very long. So I'm
doing a similar match using "amatch" gem.
When I have a 50% or greater match I store the id to an array.
How
> 'project', :action
=> 'update'} do |f| %>
<%= f.error_messages %>
<%= f.text_area :notes, :size => '50x30' %>
<% end %>
// Here is the table row in the "form_for"
<%= f.label :comments, "Notes/Comments&
7;,
'viewDialog("Notes/Comments")') %>
John
John Mcleod wrote:
> Hello all,
> I'm just a newbie with Ruby on Rails but I've worked a little more with
> jQuery.
> I have a RoR application that has a very long "New" form. One of the
> fields in the
Hello all,
I'm just a newbie with Ruby on Rails but I've worked a little more with
jQuery.
I have a RoR application that has a very long "New" form. One of the
fields in the form is "Project Notes". I have created a hyperlink to a
jQuery UI Dialog box that can stay open so the user can type note
saving one record each time,
> but I
> could be wrong. If anyone's got a better way I'd love to know what it
> is. :)
>
>
>
> On Tue, Oct 27, 2009 at 2:37 PM, John Mcleod <
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~--
Hello all,
I was wondering how to update an existing table column when reading in a
CSV? I'm using FasterCSV and my controller method is this...
- Import Controller -
def process_csv
# set file name
file = params[:import][:file]
rowcount = 0
Import.transaction do
FasterCSV
Hello all,
I've been getter better with Rails but I'm still just learning.
Here's what I have.
I have one table (imports) and I read in a csv into this table.
I must do some preliminary editing to each record, afterwhich, I wish to
insert all records into another table (projects) in one shot.
I
You are correct.
I must do some editing to incoming data before it's "imported" into the
"projects" table.
I'm having more problems importing data from one table to another. When
editing is complete, I click a button to "save" to projects table.
My button is very up front and easy.
<%= button_
Your right.
I could not deal with the additional table.
Thanks for the insight.
John
Marnen Laibow-Koser wrote:
> John Mcleod wrote:
>> Thanks for the quick reply.
>>
>>>But having two tables with identical structure is smelly. Why not just
>>> use a flag a
able after the insert into the "projects"
table. This way the user has a fresh table to get info from a csv file.
John
Marnen Laibow-Koser wrote:
> John Mcleod wrote:
>> Hello all,
>> I've been getter better with Rails but I'm still just learning.
>>
>&g
Hello all,
I've been getter better with Rails but I'm still just learning.
Here's what I have.
I have one table (imports) and I read in a csv into this table.
After doing some preliminary editing to each record I wish to insert all
records into another table (projects) in one shot.
I could create
Oh, another thing.
When I click on the row, the all the text in the row does fade (similar
to the drag/drop examples). It seems to me that I'm almost there.
Thank you.
John
John Mcleod wrote:
> Hello all,
> I'm trying my first drag and drop project. Dragging a table row fro
Hello all,
I'm trying my first drag and drop project. Dragging a table row from
one table to another.
First, get table 1 row to be draggable.
I looked over several examples of Prototype/Scriptaculous of drag/drop
and thought I was doing right.
My problem is after setting it up, no dragging.
Tab
l.erb and click on the 'show'
link, my 'header/nav bar/content area layout disappears. All that
displays is the project information without any styling.
I hope this clears up things.
JohnM
Colin Law wrote:
> 2009/10/14 John Mcleod :
>>
>> Hello all,
>> I'm
Hello all,
I'm learning Ruby on Rails and still kind of new at this.
I have two different layouts (standard page and dialog box) for a view
(show).
How do I set each layout in the controller to show the different layout?
Something like this...
- Controller -
def show
@project = Project.find
Hello all,
I'm having one fun time trying to past a parameter to a javascript
function using link_to_function.
This is what I have...
1. A simple project, controller, views, model.
2. Prototype Window dialog box installed.
What I'm trying to do is on the index.html.erb, instead of link_to
"show"
mike wrote:
> I think you try to parse the csv before saving the model to the db.
> Thats when validations would be run. You should catch any FasterCSV
> Exceptions and give a proper error message in the controller.
>
> 2009/10/8, John Mcleod :
>> Below is my model.
>
Hello all,
I'm trying to validate a uploaded file extension. I'm not using any
special plugin other that fastercsv.
When I try to upload an incorrect file (say a ".doc"), I get this error
message...
"Error adding logs. (Unquoted fields do not allow \r or \n (line 2).).
Please try again."
Below
> My pleasure! People help me.. I help people. The world goes round,
> albeit slightly lopsided.
quite a bit lopsided.
> Hmm.. Why not just do it the way the scaffolds set it up? :)
Not a bad idea. I'll head in that direction and see what transpires.
Aldric Giacomoni wrote:
= params[:id]
> results = Project.search_by_irb_pi(irb_id, params[:page])
> render :partial => 'imports/results', :locals => {:projects =>
> @projects}
>
> This code quite clearly gets results, and then sends the variable
> @projects out
<%=h project.project_id %>
<%=h project.title %>
<%=h project.pi_full_name %>
<%= link_to 'view', project,
:rel => 'facebox' %>
<% end %>
John
John Mcleod wrote:
> Aldric,
> I did what you s
ls => {:projects =>
@projects}
end
Thank you again for all your help
John
Aldric Giacomoni wrote:
> John Mcleod wrote:
>> Aldric,
>> Sorry, I just did some work on the project and it still doesn't update
>> the searchResults table.
>>
>
>>
| %>
<%=h project.irb_id %>
<%=h project.project_id %>
<%=h project.title %>
<%=h project.pi_full_name %>
<%= link_to 'view', project,
:rel => 'facebox' %>
<% end %>
like this...
[0;1mSELECT * FROM "projects" WHERE (import_id LIKE '%%') ORDER BY
irb_id ASC, pi_full_name ASC LIMIT 10 OFFSET 0 [0m
This will return nothing of course.
Another problem is trying to display the results in the table in the
"searchResults" div on the
Whoa! There's a lot to chew on there.
First off, thank you for the reply.
Let me chew, chew on this over the weekend and I'll let you know my
progress on Monday.
I've used wil_paginate before so that helps.
Thanks again.
John
Aldric Giacomoni wrote:
> Hang on to your shorts - I did something qui
Hello all,
This one has kept me up at night. I'm kind of new to Ruby on Rails (5
weeks and counting).
I have two tables.
One table is created by the input of a .csv file.
Imports
- imports_id
- imports_title
- description
- manager
The other table is a "projects" table.
Projects
- projects
uot;map.connect" "path/to/view",
:controller => 'controller', :aciton => 'action'
Is this correct or am I lost?
Rob Biedenharn wrote:
> On Aug 28, 2009, at 11:34 AM, John Mcleod wrote:
>> Hello all,
>> Here's a newbie question (4 weeks and coun
Hello all,
Here's a newbie question (4 weeks and counting).
My routes.rb is as below.
map.resources :projects, :departments, :users, :admins, :imports, :notes
#Below is route in question
map.resources :projects, :collection => { :view_all => :get }
map.home '', :controller => 'projects', :actio
Colin,
I used the array approach and it worked.
Like this...
@import = Import.find(:all)
@import.each { |i| i.destroy }
Thanks for the input.
John
Colin Law wrote:
> 2009/8/26 John Mcleod :
>>
>> I have this:
>> imports_controller:
>>
>> def process_csv
&g
t;
redirect_to :action => :index
end
---
When I do this I get this error...
"Error adding logs. (undefined method `destroy' for #).
Please try again."
Any clues?
Thanks,
JohnM
John Mcleod wrote:
> Hello all,
> I'm using
Hello all,
I'm using Ruby 1.8.6 and Rails 2.3.3.
I'm new at Rails so bear with me, please.
My application reads in a csv file to a staging (imports) table then
compares the contents of the table to a main (projects) table. Then
imports all non-repetitive rows to the main table.
This application w
Thank you for the reply.
I will do some reading on Metal and I see there's a railscast on the
subject too.
It won't be too "heavy" task as the file will be approx. 17-20 MB
Thanks again.
JohnM
Robert Walker wrote:
> John Mcleod wrote:
>> My project consist
Hello all,
I'm a newbie with Ruby on Rails. So far, 3 weeks and counting. I'm
really a PHP guy with a department that changed its development
platform. But enough of the chit chat.
My project consists of a "Project" database and periodic imports (new
data) to the database. This import file will be
Thanks for the advice. I will try all that's suggested.
I've also posted on the Ruby forum, since Apha Blue's earlier post.
It seems that I have a bit of work ahead of me.
Thanks again.
johnM
rogerdpack wrote:
>> nmake
>> 'nmake' is not recognized as an internal or external command,
>> operable
Thanks again for the quick reply.
You are right. This is not the place for this post. My apologies.
I will move to the appropriate forum.
The funny thing is that I'm running a VM of Windows 2003 on a MAC.
I'm really a PHP guy with around 2 weeks (department mandated) of Ruby
experience.
Thanks ag
Thanks for the quick reply.
I tried what you stated with no change.
I installed the .tgz of the gem and moved the entire folder within the
bin folder.
I read the 'readme' and tried to install. I received the below error
after the setup command.
Is this what you mean by "you have to build the g
Hello all,
I tried to install the 'amatch' gem and received the following error:
===
C:\Ruby\bin>gem install amatch-0.2.3.gem
Building native extensions. This could take a while...
ERROR: Error installing amatch-0.2.3.g
65 matches
Mail list logo