[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Wiki on Rails

RCS

9/30/2006 9:32:00 PM

Hi, just recently installed RoR, and would like to create a Wiki running
on my Rails installation.

Are there any ready-to-go Wikis (ala PhP) for RoR?

Baalbek
7 Answers

David Vallner

9/30/2006 10:06:00 PM

0

baalbek wrote:
> Hi, just recently installed RoR, and would like to create a Wiki running
> on my Rails installation.
>
> Are there any ready-to-go Wikis (ala PhP) for RoR?
>

A) You usually capitalise PHP whole.

B) Yes. "gem install -y instiki", "gem update -y" and "instiki" in a
console should help.

David Vallner

RCS

9/30/2006 10:49:00 PM

0

David Vallner wrote:
> B) Yes. "gem install -y instiki", "gem update -y" and "instiki" in a
> console should help.

Thanks!

RCS

9/30/2006 11:04:00 PM

0

David Vallner wrote:
> B) Yes. "gem install -y instiki", "gem update -y" and "instiki" in a
> console should help.

Opps, after running gem install -y instiki (and gem update -y <== what
do this do?), the command 'instiki' gave the following errors:


/usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/clean_logger.rb:13:in
`remove_const': constant Logger::Format not defined (NameError)
from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/clean_logger.rb:13
from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support.rb:31
from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from
/usr/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record.rb:29
from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:229:in `activate'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:228:in `activate'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:214:in `activate'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:213:in `activate'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:214:in `activate'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:213:in `activate'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:66:in
`active_gem_with_options'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:59:in `require_gem'
from /usr/bin/instiki:17


What is missing? I'm having Ruby 1.8.4 on a Linux Kubuntu system.

Regards,
Baalbek

David Vallner

10/1/2006 12:21:00 AM

0

baalbek wrote:
> David Vallner wrote:
>> B) Yes. "gem install -y instiki", "gem update -y" and "instiki" in a
>> console should help.
>
> Opps, after running gem install -y instiki (and gem update -y <== what
> do this do?), the command 'instiki' gave the following errors:
>
>
> /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/clean_logger.rb:13:in
> `remove_const': constant Logger::Format not defined (NameError)
> from
> /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/clean_logger.rb:13
>
> from
> /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
> from
> /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support.rb:31
> from
> /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
> from
> /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record.rb:29
> from
> /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
> from /usr/local/lib/site_ruby/1.8/rubygems.rb:229:in `activate'
> from /usr/local/lib/site_ruby/1.8/rubygems.rb:228:in `activate'
> from /usr/local/lib/site_ruby/1.8/rubygems.rb:214:in `activate'
> from /usr/local/lib/site_ruby/1.8/rubygems.rb:213:in `activate'
> from /usr/local/lib/site_ruby/1.8/rubygems.rb:214:in `activate'
> from /usr/local/lib/site_ruby/1.8/rubygems.rb:213:in `activate'
> from /usr/local/lib/site_ruby/1.8/rubygems.rb:66:in
> `active_gem_with_options'
> from /usr/local/lib/site_ruby/1.8/rubygems.rb:59:in `require_gem'
> from /usr/bin/instiki:17
>
>
> What is missing? I'm having Ruby 1.8.4 on a Linux Kubuntu system.
>
> Regards,
> Baalbek
>

I got the same issue before updating the gems, it's due to some
incompatible Logger changes between Ruby 1.8.2 and 1.8.3 that break Rails.

I thought updating Rails will make instiki pick up the new, since fixed
versions, but apparently the whole gem is hardcoded to use the old versions.

Look up its specification file, yours should be at
/usr/lib/ruby/gems/1.8/specifications/instiki-0.10.2.gemspec.

At the end, there should be lines specifying dependency versions:

s.add_dependency(%q<madeleine>, ["= 0.7.1"])
s.add_dependency(%q<RedCloth>, ["= 3.0.3"])
s.add_dependency(%q<rubyzip>, ["= 0.5.8"])
s.add_dependency(%q<rails>, ["= 0.13.1"])

Change the = to >= on all lines.

David Vallner

Jonas Hartmann

10/1/2006 12:25:00 AM

0

but you seem not to have rails up and running (or at least active
support, which is - as far as i know - part of rails )

baalbek wrote:
> David Vallner wrote:
>> B) Yes. "gem install -y instiki", "gem update -y" and "instiki" in a
>> console should help.
>
> Opps, after running gem install -y instiki (and gem update -y <== what
> do this do?), the command 'instiki' gave the following errors:
>
>
> /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/clean_logger.rb:13:in
> `remove_const': constant Logger::Format not defined (NameError)
> from
> /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/clean_logger.rb:13
>
> from
> /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
> from
> /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support.rb:31
> from
> /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
> from
> /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record.rb:29
> from
> /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
> from /usr/local/lib/site_ruby/1.8/rubygems.rb:229:in `activate'
> from /usr/local/lib/site_ruby/1.8/rubygems.rb:228:in `activate'
> from /usr/local/lib/site_ruby/1.8/rubygems.rb:214:in `activate'
> from /usr/local/lib/site_ruby/1.8/rubygems.rb:213:in `activate'
> from /usr/local/lib/site_ruby/1.8/rubygems.rb:214:in `activate'
> from /usr/local/lib/site_ruby/1.8/rubygems.rb:213:in `activate'
> from /usr/local/lib/site_ruby/1.8/rubygems.rb:66:in
> `active_gem_with_options'
> from /usr/local/lib/site_ruby/1.8/rubygems.rb:59:in `require_gem'
> from /usr/bin/instiki:17
>
>
> What is missing? I'm having Ruby 1.8.4 on a Linux Kubuntu system.
>
> Regards,
> Baalbek
>
>
>


RCS

10/1/2006 11:57:00 AM

0

Jonas Hartmann wrote:
> but you seem not to have rails up and running (or at least active
> support, which is - as far as i know - part of rails )

I got rails running (at least the testpage at http...).

My Active Support might not be ok, but I'll try the solution given by
David Vallner.

Baalbek

RCS

10/1/2006 11:59:00 AM

0

That fixed it!

Thanks a lot!

Baalbek

David Vallner wrote:
> I got the same issue before updating the gems, it's due to some
> incompatible Logger changes between Ruby 1.8.2 and 1.8.3 that break Rails.
>
> I thought updating Rails will make instiki pick up the new, since fixed
> versions, but apparently the whole gem is hardcoded to use the old versions.
>
> Look up its specification file, yours should be at
> /usr/lib/ruby/gems/1.8/specifications/instiki-0.10.2.gemspec.
>
> At the end, there should be lines specifying dependency versions:
>
> s.add_dependency(%q<madeleine>, ["= 0.7.1"])
> s.add_dependency(%q<RedCloth>, ["= 3.0.3"])
> s.add_dependency(%q<rubyzip>, ["= 0.5.8"])
> s.add_dependency(%q<rails>, ["= 0.13.1"])
>
> Change the = to >= on all lines.
>
> David Vallner
>