Search the web
Sign In
New User? Sign Up
RubyOnRails · Ruby on Rails
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 49 - 78 of 107   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Show Message Summaries   (Group by Topic) Sort by Date v  
#78 From: "bruno_prieto_reis" <bruno.p.reis@...>
Date: Wed Sep 5, 2007 12:51 am
Subject: Action Mailer - Must issue a STARTTLS command first
bruno_prieto...
Offline Offline
Send Email Send Email
 
Hi all,

I want to send an e-mail using google smtp, but I get the following
message:

Must issue a STARTTLS command first

does anyone here knows what should I do?

thanks

Bruno Reis

#77 From: "S A B B I R" <cool.deadlock@...>
Date: Tue Sep 4, 2007 8:20 pm
Subject: Re: running ruby
cool.morpheus
Offline Offline
Send Email Send Email
 
Hi buddy,

download the Radrails  as IDE and download the instanterails from web.
extract the InstantRails and show ruby.exe in  InstantRails to radrails
preference.
I think it will be easy for to work on ROR in this way.

let me know if u feel any problem.
Good luck.

-sabbir
[Man without destination  ]




On 9/5/07, Niclas Magnusson <niclas.magnusson@...> wrote:
>
>
>
> yahdoco skrev:
> >
> >
> > Hi Everyone...I am totally new to this language. I have
> > installed ruby on my computer. I have a ruby icon on
> > desktop. The name of the icom is hello.rb. Inside I have
> > the following text:
> >
> > #generate some simple output (comment)
> > puts "Hello World"
> >
> > When I click on this icon, I get a small black screen
> > the disappears after a few seconds. I assume it has
> > some words on it but the screen goes by so fast I can't read
> > it. How do I change the screen to show black letters
> > on a white background? How do I keep the screen visible
> > until I choose to click it off?
> >
> > Thanks for your help. Yahdoco
>
> I'm new to Ruby too, but it should work if you open up a console, change
> directory to your desktop (C:\Documents and
> Settings\<username>\Desktop\) and there types "ruby hello.rb"
>
> /Niclas
>
>



--
Thanks,
Sabbir
Sr. Software Engineer.


[Non-text portions of this message have been removed]

#76 From: Niclas Magnusson <niclas.magnusson@...>
Date: Tue Sep 4, 2007 7:29 pm
Subject: Re: running ruby
niclasmagnus...
Offline Offline
Send Email Send Email
 
yahdoco skrev:
>
>
> Hi Everyone...I am totally new to this language. I have
> installed ruby on my computer. I have a ruby icon on
> desktop. The name of the icom is hello.rb. Inside I have
> the following text:
>
> #generate some simple output (comment)
> puts "Hello World"
>
> When I click on this icon, I get a small black screen
> the disappears after a few seconds. I assume it has
> some words on it but the screen goes by so fast I can't read
> it. How do I change the screen to show black letters
> on a white background? How do I keep the screen visible
> until I choose to click it off?
>
> Thanks for your help. Yahdoco


I'm new to Ruby too, but it should work if you open up a console, change
directory to your desktop (C:\Documents and
Settings\<username>\Desktop\) and there types "ruby hello.rb"

/Niclas

#75 From: "yahdoco" <yahdoco@...>
Date: Tue Sep 4, 2007 5:36 pm
Subject: running ruby
yahdoco
Offline Offline
Send Email Send Email
 
Hi Everyone...I am totally new to this language. I have
installed ruby on my computer. I have a ruby icon on
desktop. The name of the icom is hello.rb. Inside I have
the following text:

#generate some simple output (comment)
puts "Hello World"

When I click on this icon, I get a small black screen
the disappears after a few seconds. I assume it has
some words on it but the screen goes by so fast I can't read
it. How do I change the screen to show black letters
on a white background? How do I keep the screen visible
until I choose to click it off?

Thanks for your help. Yahdoco

#74 From: "gers32" <cbu@...>
Date: Fri Aug 31, 2007 8:11 am
Subject: Date format conversion problem
gers32
Offline Offline
Send Email Send Email
 
Hi,

I generate in RoR an XML file representing Oracle database data, which
is then sent to an Adobe Flex UI as an HTTP Web Service. In order to
format DATES in a way that Flex understands, I add the following code
to environment.rb :

ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.merge!
( :flex => '%a %b %d %H:%M:%S %Y' )

Then, I temporarily modify the formatting of my datetime data, in this
function :

   def list_timespan_flexdateformat_xml
     old_proc = Hash::XML_FORMATTING['datetime']
     Hash::XML_FORMATTING['datetime'] = Proc.new { |datetime|
datetime.to_s(:flex2) }

     @rv_wrk_calendar_events = RvWrkCalendarEvent.find(
                                       :all, :conditions =>
[ "start_date >= ? and start_date <= ?",

params[:min_start_date], params[:max_start_date]])
     render :xml => @rv_wrk_calendar_events.to_xml

     Hash::XML_FORMATTING['datetime'] = old_proc
   end

This works well for all Oracle DATE fields that contain TIME
information. But for some mysterious reason, it doesn't work when the
DATE field doesn't contain TIME information. The only meager result is
that some formats (e.g., '%Y %m %d', '%Y/%m/%d' or '%Y-%m-%d')
generate this :

<start_date type="datetime">2007-08-23</start_date>

instead of the default :

<start_date type="datetime">2007-08-23T00:00:00+02:00</start_date>

I tried replacing "datetime" with "time" in the code above, to no
avail...

I know I can eventually parse the date in Flex, but this problem is
driving me crazy!

Chris.

#73 From: "gers32" <cbu@...>
Date: Mon Aug 27, 2007 6:06 am
Subject: Re: XML version of a Rails-generated list function
gers32
Offline Offline
Send Email Send Email
 
This is how I solved my problem, using find ( :all ):

   def list_xml
     @rv_wrk_medical_staffs = RvWrkMedicalStaff.find( :all )
     render :xml => @rv_wrk_medical_staffs.to_xml
   end

Chris.

--- In RubyOnRails@yahoogroups.com, "gers32" <cbu@...> wrote:
>
> For the purpose of calling from a Flex HTTPService, I need to create
> an XML version of the Rails-generated list() function. The original
> is:
>
>   def list
>     @rv_wrk_medical_staff_pages, @rv_wrk_medical_staffs = paginate
> :rv_wrk_medical_staffs, :per_page => 10
>   end
>
> I tried applying to_xml() to @rv_wrk_medical_staffs, but get the
> following error message:
>
> "Not all elements respond to to_xml"
>
> Thanks,
>
> Chris.
>

#72 From: "gers32" <cbu@...>
Date: Fri Aug 24, 2007 9:19 am
Subject: XML version of a Rails-generated list function
gers32
Offline Offline
Send Email Send Email
 
For the purpose of calling from a Flex HTTPService, I need to create
an XML version of the Rails-generated list() function. The original
is:

   def list
     @rv_wrk_medical_staff_pages, @rv_wrk_medical_staffs = paginate
:rv_wrk_medical_staffs, :per_page => 10
   end

I tried applying to_xml() to @rv_wrk_medical_staffs, but get the
following error message:

"Not all elements respond to to_xml"

Thanks,

Chris.

#71 From: "gers32" <cbu@...>
Date: Tue Aug 21, 2007 2:47 pm
Subject: Re: Problem with DATE type in Oracle
gers32
Offline Offline
Send Email Send Email
 
I solved the problem, by replacing the Rails-generated
"datetime_select" with "date_select" in _form.rhtml.

--- In RubyOnRails@yahoogroups.com, "gers32" <cbu@...> wrote:
>
> I have several DATE fields in several Oracle tables. Some have time
> information, some don't (but same data type). Rails doesn't seem to
> handle the ones that don't contain it, for editing.
>
> For example, on "show", I'll see:
>
> 2006-02-02
>
> and
>
> Thu Apr 12 09:31:04 +0200 2007
>
> in two different DATE fields. But I'll get the following error message
> on "edit", regarding 2006-02-02:
>
> private method `min' called for #<Date: 4907537/2,0,2299161>
>
> Does anyone know how to solve this problem?
>
> Thanks, Chris.
>

#70 From: "gers32" <cbu@...>
Date: Tue Aug 21, 2007 12:49 pm
Subject: Problem with DATE type in Oracle
gers32
Offline Offline
Send Email Send Email
 
I have several DATE fields in several Oracle tables. Some have time
information, some don't (but same data type). Rails doesn't seem to
handle the ones that don't contain it, for editing.

For example, on "show", I'll see:

2006-02-02

and

Thu Apr 12 09:31:04 +0200 2007

in two different DATE fields. But I'll get the following error message
on "edit", regarding 2006-02-02:

private method `min' called for #<Date: 4907537/2,0,2299161>

Does anyone know how to solve this problem?

Thanks, Chris.

#69 From: "canardian2" <scott@...>
Date: Fri Jul 27, 2007 2:45 am
Subject: script/server cannot find lighttpd
canardian2
Offline Offline
Send Email Send Email
 
I'm using the Agile Web development book to learn Rails.

The book says that if I install lighttpd web server the script/server
ruby script will find it and use it instead of Webbrick.

I built and installed lighttpd but no joy when executing script/server

lighttpd runs fine if I launch it manually.

any ideas?

thanks, Scott

#68 From: "ash6l9" <ash6l9@...>
Date: Tue Jun 19, 2007 6:54 am
Subject: got stuck......help
ash6l9
Offline Offline
Send Email Send Email
 
hi everyone.......
actually me want to have a form having the name field as drop
down ......when new is selected the form shud create a record and wen
an existing name is selected then v have to edit the record........that
means rest of the fields get auto-generated....
so my problem is how to have the new and edit models in one
form....?????
please help

#67 From: Nicholas Cancelliere <nickaustin74@...>
Date: Mon May 21, 2007 6:53 pm
Subject: How to fix NSLinkModule error Issues on Mac OS X and mySQL 5.x
nickaustin74
Offline Offline
Send Email Send Email
 
If you're installing Rails on a Mac OS (10.4.9 is what I'm using) and
you get this error:

dyld: NSLinkModule() error
dyld: Library not loaded: /usr/local/mysql/lib/mysql/libmysqlclient.
15.dylib
    Referenced from: /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib/
mysql.bundle
    Reason: image not found
Trace/BPT trap

There's an easy quick way to fix it.  The problem is with the newer
version of mySQL the directory structure doesn't match what webrick
seems to be expecting.  It lives in /usr/local/mysql/lib instead of /
usr/local/mysql/lib/mysql.  This is easily fixed though by creating a
symbolic link from the expect (old) directory location to the newer
one used in mySQL 5.

Navigate to your mySQL installation, which should be by doing the
following:

	 nicholas$ cd /usr/local/mysql/lib

Then you'll want to become root:

	 nicholas$ sudo -s

Now you need to create the symbolic link (basically telling the
filesystem if someone is looking for /usr/local/mysql/lib/mysql to
show them the /usr/local/mysql/lib instead), then do a ls to make
sure it worked right:

	 /usr/local/mysql/lib root# ln -s /usr/local/mysql/lib mysql

	 /usr/local/mysql/lib root# ls -al
	 drwxr-xr-x   22 root  wheel      748 May 21 13:39 .
	 drwxr-xr-x   19 root  wheel      646 Apr 26 15:13 ..
	 -rw-r--r--    1 root  wheel    12336 Apr 26 15:00 libdbug.a
	 -rw-r--r--    1 root  wheel    51524 Nov  1  2005 libmygcc.a
	 -rw-r--r--    1 root  wheel     2956 Apr 26 13:25 libmysql.imp
	 -rwxr-xr-x    1 root  wheel  1967764 Apr 26 15:12 libmysqlclient.
15.0.0.dylib
	 -rwxr-xr-x    1 root  wheel  1967764 Apr 26 15:12 libmysqlclient.
15.dylib
	 -rw-r--r--    1 root  wheel  2460444 Apr 26 15:12 libmysqlclient.a
	 -rwxr-xr-x    1 root  wheel  1967764 Apr 26 15:12 libmysqlclient.dylib
	 -rwxr-xr-x    1 root  wheel  1970104 Apr 26 15:11 libmysqlclient_r.
15.0.0.dylib
	 -rwxr-xr-x    1 root  wheel  1970104 Apr 26 15:11 libmysqlclient_r.
15.dylib
	 -rw-r--r--    1 root  wheel  2468196 Apr 26 15:11 libmysqlclient_r.a
	 -rwxr-xr-x    1 root  wheel  1970104 Apr 26 15:11
libmysqlclient_r.dylib
	 -rw-r--r--    1 root  wheel  1331628 Apr 26 15:00 libmystrings.a
	 -rw-r--r--    1 root  wheel   270716 Apr 26 15:00 libmysys.a
	 -rwxr-xr-x    1 root  wheel   693460 Apr 26 15:13 libndbclient.
2.0.0.dylib
	 -rwxr-xr-x    1 root  wheel   693460 Apr 26 15:13 libndbclient.2.dylib
	 -rw-r--r--    1 root  wheel  1099220 Apr 26 15:13 libndbclient.a
	 -rwxr-xr-x    1 root  wheel   693460 Apr 26 15:13 libndbclient.dylib
	 -rwxr-xr-x    1 root  wheel      855 Apr 26 15:13 libndbclient.la
	 -rw-r--r--    1 root  wheel    78452 Apr 26 14:59 libz.a
	 lrwxr-xr-x    1 root  wheel       20 May 21 13:39 mysql -> /usr/
local/mysql/lib


That's it!  You should be all fixed up and ready to go, enjoy!


Nicholas



[Non-text portions of this message have been removed]

#66 From: "Nicholas" <nickaustin74@...>
Date: Mon May 21, 2007 6:16 pm
Subject: ruby/rails newby needs help with passing parameters to testcases
nickaustin74
Offline Offline
Send Email Send Email
 
I'm trying to pass parameters into a Selenium testcase using
Test::Unit:Testcase ... would I do this with a fixture or simply pass
parameters somehow into a class I create like:

myTest = TC_LoginTest.net(param1, param2, param3, etc)

Basically I want to write 1 test that will log into an application I
made as different users and validate the outcome.  The parameters are
user name, password, profile and database.    I'm not really familiar
with fixtures (if that's what I should be using) or if I should be
passing parameters in a separate test suite file ... not sure.  Any
advice or a website you could point me to I'd appreciate it.

Nicholas



My class is below__________________________________________

require 'test/unit'
require '../selenium'

class TC_LoginTest < Test::Unit::TestCase
  include SeleniumHelper

  def setup
    @selenium = Selenium::SeleniumDriver.new("localhost", 4444,
"*iexplore", 10000);
    @selenium.start
  end

  def teardown
    @selenium.stop
  end

  def test_doLogin
      #open the special test login page that doesn't need SSL (since
Se doesn't like SSL)
      open('/myapp/utils/specialLogin.cfm')
      uncheck(name="myChkBox")
      type(name="UName", username)
      type(name="Pass", password)
      click(database)
      # after providing username and password we click the database
button we want to test and validate
      sleep 5
      assert_equal(username,get_text("userName"),["Username doesn't
match login"])
      assert_equal(profile,get_text("profileName"),["Profile name
match unexpected"])

  end

end

#65 From: "enygma007in" <enygmatic@...>
Date: Sun May 13, 2007 6:06 am
Subject: rescue_action_in_public
enygma007in
Offline Offline
Send Email Send Email
 
How can rescue_action_in_public method defined in
ApplicationController be tested locally. Have tried forcing into
production mode....but doesn't seem to work

Regards,
Elroy

#64 From: "mennellj" <jem@...>
Date: Sat May 5, 2007 11:07 pm
Subject: Seeking experienced RoR programmer for Literacy database
mennellj
Offline Offline
Send Email Send Email
 
Our national non-profit literacy campaign has a timely need for a RoR
application/database to match donated recycled magazines by genre to
preferences indicated by food pantries, homeless, and domestic
violence shelters.  I know enough about RoR to be dangerous, so need
help from an experience person or team for rapid, quality delivery.
There are more details at:

http://magazineliteracy.org/?tp=kinderharvest

This blog post will give some flavor for what's needed:

http://magazineliteracy.org/blog/?p=85

Thanks!

#63 From: "wp913" <wp913@...>
Date: Tue Mar 20, 2007 2:29 pm
Subject: instant rails migration 1.4 -> 1.6 and Sparklines
wp913
Offline Offline
Send Email Send Email
 
I have an app in which I use Geoffrey Grosenbach's sparklines gem. As
soon as I add "require 'sparklines'" environment.rb I get this error
when I try to start mongrel.


C:\INSTAN~1.6-W\INSTAN~1\RAILS_~1\demo>ruby
script/server
=> Booting Mongrel (use 'script/server webrick' to
force WEBrick)
=> Rails application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment...
Exiting
C:/InstantRails-1.6-win/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.2/lib
/commands/servers/mongrel.rb:15: warning: already
initialized constant OPTIONS
C:/InstantRails-1.6-win/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.2/lib
/commands/servers/mongrel.rb:18: undefined method
`options' for []:Array (NoMeth
odError)
         from
C:/InstantRails-1.6-win/InstantRails/ruby/lib/ruby/site_ruby/1.8/ru
bygems/custom_require.rb:32:in `gem_original_require'
         from
C:/InstantRails-1.6-win/InstantRails/ruby/lib/ruby/site_ruby/1.8/ru
bygems/custom_require.rb:32:in `require'
         from
C:/InstantRails-1.6-win/InstantRails/ruby/lib/ruby/gems/1.8/gems/ac
tivesupport-1.4.1/lib/active_support/dependencies.rb:495:in
`require'
         from
C:/InstantRails-1.6-win/InstantRails/ruby/lib/ruby/gems/1.8/gems/ac
tivesupport-1.4.1/lib/active_support/dependencies.rb:342:in
`new_constants_in'
         from
C:/InstantRails-1.6-win/InstantRails/ruby/lib/ruby/gems/1.8/gems/ac
tivesupport-1.4.1/lib/active_support/dependencies.rb:495:in
`require'
         from
C:/InstantRails-1.6-win/InstantRails/ruby/lib/ruby/gems/1.8/gems/ra
ils-1.2.2/lib/commands/server.rb:39
         from
C:/InstantRails-1.6-win/InstantRails/ruby/lib/ruby/site_ruby/1.8/ru
bygems/custom_require.rb:27:in `gem_original_require'
         from
C:/InstantRails-1.6-win/InstantRails/ruby/lib/ruby/site_ruby/1.8/ru
bygems/custom_require.rb:27:in `require'
         from script/server:3

Does anyone have an idea what I might be doing wrong?

Thanks!

-Phil

#62 From: "sangeetha_geethu05" <sangeetha_geethu05@...>
Date: Fri Mar 2, 2007 7:04 am
Subject: regular expression
sangeetha_ge...
Offline Offline
Send Email Send Email
 
Hi,

   While the time of executing the following regular expression pattern
match , it show some error message,

Can any one help me??

code:


$key_word="C++"
val="C++"
if (val =~ /#{$key_word}/i)
   puts $key_word
else
puts "no"
end



error:


reg.rb:3: nested *?+ in regexp: /C++/ (RegexpError)

Thanks,
Sangeetha.S

#61 From: "juniovitorino" <juniovitorino@...>
Date: Wed Feb 21, 2007 12:17 am
Subject: Re: Starting to learn Ruby on Rails
juniovitorino
Offline Offline
Send Email Send Email
 
Yes u need database server (eg: mysql or postgres). For webserver you can either
use the
inbuilt webrick server for developement or anyother opensource server like
Apache. I found a
few links on the web that can guide you setting up ruby on rails on a Mac

http://maczealots.com/tutorials/ruby-on-rails/
http://hivelogic.com/narrative/articles/ruby-rails-mongrel-mysql-osx (also
remember there
might more updated tutorial available so u might want to do a search before
trying this)

Ok guy i thanks your answer, a friend than already develop in ruby on the mac
also
recommended for me Locomotive app, a applicative than make all job for you. I go
use
Locomotive together with MAMP (Apache + MySQL + PHP) app, and i wait than
everything
work perfectly.

---------------------
Junio Vitorino
juniovitorino@...
Brazil, Minas Gerais

#60 From: Vinod Jeffrey <snjblisters@...>
Date: Tue Feb 20, 2007 8:32 pm
Subject: Re: Starting to learn Ruby on Rails
snjblisters
Offline Offline
Send Email Send Email
 
Yes u need database server (eg: mysql or postgres). For webserver you can either
use the inbuilt webrick server for developement or anyother opensource server
like Apache. I found a few links on the web that can guide you setting up ruby
on rails on a Mac

   http://maczealots.com/tutorials/ruby-on-rails/
   http://hivelogic.com/narrative/articles/ruby-rails-mongrel-mysql-osx (also
remember there might more updated tutorial available so u might want to do a
search before trying this)


juniovitorino <juniovitorino@...> wrote:
           Hi guys, thats is my first participation on this group and i'm
starting my studies at ruby on
rails, and i'd like help. I've a mac running Tiger and i'd like of the leave my
Tiger ready for
develop ruby applications, my Tiger is new and haven't nothing installed yet, so
i believe than
i will need install http server, database server and another servers for run run
ruby on rails.






---------------------------------
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.

[Non-text portions of this message have been removed]

#59 From: "juniovitorino" <juniovitorino@...>
Date: Mon Feb 19, 2007 5:00 pm
Subject: Starting to learn Ruby on Rails
juniovitorino
Offline Offline
Send Email Send Email
 
Hi guys, thats is my first participation on this group and i'm starting my
studies at ruby on
rails, and i'd like help. I've a mac running Tiger and i'd like of the leave my
Tiger ready for
develop ruby applications, my Tiger is new and haven't nothing installed yet, so
i believe than
i will need install http server, database server and another servers for run run
ruby on rails.

#58 From: narayana karthik <narayana_49@...>
Date: Fri Feb 16, 2007 6:51 am
Subject: Re: sed command
narayana_49
Offline Offline
Send Email Send Email
 
Hi Sangeetha,

       I found useful links related to sed commands.
   please go through the links. definetely its useful for you & this Group.

   http://tips.webdesign10.com/sed-a-stream-editor
   http://www.grymoire.com/Unix/Sed.html
   http://www.grymoire.com/Unix/Sed.html#uh-21

   Have a Great Day.
   Thanks & Regards,
   Karthick.

sangeetha_geethu05 <sangeetha_geethu05@...> wrote:
           hi,

Using sed command I have to execute one html file in controller .
If it possible to execute "sed" command in Ruby on Rails.






---------------------------------
It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.

[Non-text portions of this message have been removed]

#57 From: "shpadoinkal" <jsbeckerman@...>
Date: Tue Feb 13, 2007 6:56 pm
Subject: New Venture
shpadoinkal
Offline Offline
Send Email Send Email
 
I am in the process of building out a new web 2.0 product and I need a
developer. I need this person to eventually become the Senior
Developer - CTO in my organization. The compensation for this role,
for now, will be floor level equity. Eventually, when VC money is
obtained (which is a high possibility since my current investor has a
lot of connections) a full time employment contract would be granted.
The role will include working with the product development team and
driving the products technology platform.

The idea is very cool, fun, and revolutionary. You would be working
with a great team.

If you are on the east coast, and are interested, email me.

Thanks,

Jason

#56 From: "sangeetha_geethu05" <sangeetha_geethu05@...>
Date: Thu Feb 15, 2007 8:08 am
Subject: sed command
sangeetha_ge...
Offline Offline
Send Email Send Email
 
hi,

      Using sed command I have to execute one html file in controller .
If it possible to execute "sed" command in Ruby on Rails.

#55 From: "Akhil Bansal" <bansalakhil30.10@...>
Date: Sun Feb 4, 2007 2:40 pm
Subject: RubyOnRails Programmer required
bansalakhil3...
Online Now Online Now
Send Email Send Email
 
Hi all,
We at vinsol have openings for fulltime rubyonrails developer.
If you have Rails experience or you are exteremly good at other web
programming languages/framework and want to get started in Rails.

Send me your resume.

company: http://vinsol.com
blog: http://webonrails.com

#54 From: "colmannady" <colman@...>
Date: Fri Feb 2, 2007 2:06 am
Subject: Re: Session contains objects whose class definition isn't available.
colmannady
Offline Offline
Send Email Send Email
 
Howdy Rick!

How do you know Rails can't figure it out?  Are you getting some kind
of error message?  If so, please post.

-Colman



--- In RubyOnRails@yahoogroups.com, "rick_martin_2001"
<rick_martin_2001@...> wrote:
>
> This is a new issue for me that I've never seen before. After a little
> reading it looks as though I have an object in the session that is
> derived(?)that Rails cannot figure out? Is the problem that I have all
> the class definitions in the same model file i.e. in top_class.rb
>
> So in essence I have:
>
> class TopClass < ActiveRecord::Base
>   acts_as_tree
>     :
>     :
> end
>
> class AnotherClass < Tree
>     :
>     :
> end
>
> class YetAnotherClass < Tree
>     :
>     :
> end
>
> Any help would be greatly appreciated.
>

#53 From: "rick_martin_2001" <rick_martin_2001@...>
Date: Thu Feb 1, 2007 9:08 pm
Subject: Session contains objects whose class definition isn't available.
rick_martin_...
Offline Offline
Send Email Send Email
 
This is a new issue for me that I've never seen before. After a little
reading it looks as though I have an object in the session that is
derived(?)that Rails cannot figure out? Is the problem that I have all
the class definitions in the same model file i.e. in top_class.rb

So in essence I have:

class TopClass < ActiveRecord::Base
   acts_as_tree
     :
     :
end

class AnotherClass < Tree
     :
     :
end

class YetAnotherClass < Tree
     :
     :
end

Any help would be greatly appreciated.

#52 From: "colmannady" <colman@...>
Date: Wed Jan 31, 2007 6:14 pm
Subject: Re: page 71 of Agile Web Development with Rails (2nd edition)
colmannady
Offline Offline
Send Email Send Email
 
Howdy Dennis!

I'm afraid I don't have 2nd Ed on me, but I may be able to help you
gather some clues to your problem.  First off, try executing:

$ rake --tasks

This should list all the possible rake tasks which you can perform.
If "rake db:migrate" isn't on that list, then I suspect either Rails
didn't install correctly (are you missing ActiveRecord?), or the
"$rails depot" script didn't quite do what it was supposed to.  If you
do the following:

$ gem list --local

This should list all the different ruby libraries you have installed
on your system.  Make sure "activerecord" is on that list.  If not,
that might be part of your problem.

I hope this helps a little.

-Colman


--- In RubyOnRails@yahoogroups.com, "Dennis Eberl" <djeberl@...> wrote:
>
> Hi,
>
> I'm new to ruby and rails but seem to be stumbling along Ok. I'm
> running under Mac OS X 10.3.9 and am using ruby, rails, etc straight
> from my command line (as opposed to trying to use it via Locomotive).
>
> I finally hit a sticking point I can't solve as indicated by my
> Subject line. When I try to connect to my database...
>
>      blinky:/Library/WebServer/Documents/depot denniseberl$ rake
> db:migrate
>
> ...I get the following:
>
>      (in /Library/WebServer/Documents/depot)
>      rake aborted!
>      Don't know how to build task 'db:migrate'
>
> I tried everyting sugested on the following page, but nothing works.
> Nothing addressed the issue of "Don't know how to build task
> 'db:migrate'".
>
> Where do I go from here?
>
> Dennis
>

#51 From: "wp913" <wp913@...>
Date: Wed Jan 31, 2007 2:08 am
Subject: more gem installation trouble...
wp913
Offline Offline
Send Email Send Email
 
I had great luck installing jems on my laptop using the --remote
option. I installed InstantRails on another machine, but I'm not able
to perform any remote gem installations. I just get this cryptic error
message:

C:\InstantRails-1.4-win\InstantRails\rails_apps>gem list --remote

*** REMOTE GEMS ***
ERROR:  While executing gem ... (Errno::EBADF)
     Bad file descriptor - connect(2)


Any ideas?

-Phil

#50 From: "Debbie Polley-Gannon" <debbie@...>
Date: Mon Jan 29, 2007 10:33 pm
Subject: Help! Looking for a VP /Sr. Engineer for a Internet Start up in San Francisco
northpointst...
Offline Offline
Send Email Send Email
 
I am trying to assist a friend and CEO for a internet start up here
in San Francisco who is searching for a Senior VP of Engineering who
has both the knowledge and hands on experience with Ruby on Rails.

He has his first round of funding and a development shop who is
working on code etc. He wants a person who loves the thrill of
working on something that is cool and focused on the consumer side
of business relating to knowledge sharing.

He does not want someone as senior as a hands off CTO but more of a
person who loves to develop and code, roll their sleeves up when
need and has been working in the consumer internet space and wants
more out of their role. This is a great opportunity for the right
person to be involved from the ground floor of a company that is
sure to be a great success!

Please email me with your current resume and let me know the best
time to reach you. I will be more than happy to share more details
with you when we speak.

Thanks a bunch!

Debbie
debbie@...
415-474-1200

#49 From: "marshajnx" <marshajnx@...>
Date: Sun Jan 28, 2007 12:53 am
Subject: Ruby on Rails Programmer for Washington, DC area!
marshajnx
Offline Offline
Send Email Send Email
 
We are currently looking for looking for a dynamic programmer with at
least 2 years experience in AJAX, preferably with Ruby on Rails within
a Linux environment. This is a full time position with a competetive
salary and full medical benefits. This is a great opportunity for a
talented programmer with a an up and coming enterprise software
development company in the Washington, DC area.

Please feel free to forward this posting to colleagues that meet the
requirements of the position.

Messages 49 - 78 of 107   Newest  |  < Newer  |  Older >  |  Oldest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help