Re: [Rails] Old Rails app from Docker Container - trying to run natively again . .

2020-03-14 Thread Philip Rhoades

Hassan,


On 2020-03-15 11:31, Hassan Schroeder wrote:
On Sat, Mar 14, 2020 at 3:52 PM Philip Rhoades  
wrote:



Docker crashed and I lost the Rails container so I have to go back to
the original source.


I don't know what "lost the Rails container" means. Can't you just
rerun the Dockerfile?



No.



Could someone suggest how I could fix the problem seen below? - I
deleted the Gemfile.lock file first.


Why?



Because leaving the original lock file there caused "bundle install 
--path vendor/bundle" to fail with:


Installing json 1.8.3 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: 
/home/phr/src/ruby/rails/domain-sf/vendor/bundle/ruby/2.6.0/gems/json-1.8.3/ext/json/ext/generator
/usr/bin/ruby -I /usr/share/rubygems -r 
./siteconf20200315-119213-1sg3qup.rb extconf.rb

creating Makefile

current directory: 
/home/phr/src/ruby/rails/domain-sf/vendor/bundle/ruby/2.6.0/gems/json-1.8.3/ext/json/ext/generator

make "DESTDIR=" clean
rm -f
rm -f generator.so  *.o  *.bak mkmf.log .*.time

current directory: 
/home/phr/src/ruby/rails/domain-sf/vendor/bundle/ruby/2.6.0/gems/json-1.8.3/ext/json/ext/generator

make "DESTDIR="
gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. 
-DJSON_GENERATOR-fPIC -O2 -g -pipe -Wall -Werror=format-security 
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions 
-fstack-protector-strong
-grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mtune=generic 
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection 
-fPIC -m64 -o generator.o -c

generator.c
generator.c: In function 'generate_json':
generator.c:861:25: error: 'rb_cFixnum' undeclared (first use in this 
function); did you mean 'mFixnum'?

  861 | } else if (klass == rb_cFixnum) {
  | ^~
  | mFixnum
generator.c:861:25: note: each undeclared identifier is reported only 
once for each function it appears in
generator.c:863:25: error: 'rb_cBignum' undeclared (first use in this 
function); did you mean 'mBignum'?

  863 | } else if (klass == rb_cBignum) {
  | ^~
  | mBignum
make: *** [Makefile:245: generator.o] Error 1

make failed, exit code 2

Gem files will remain installed in 
/home/phr/src/ruby/rails/domain-sf/vendor/bundle/ruby/2.6.0/gems/json-1.8.3 
for inspection.
Results logged to 
/home/phr/src/ruby/rails/domain-sf/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-1.8.3/gem_make.out


An error occurred while installing json (1.8.3), and Bundler cannot 
continue.
Make sure that `gem install json -v '1.8.3' --source 
'https://rubygems.org/'` succeeds before bundling.


In Gemfile:
  rails was resolved to 4.1.5, which depends on
actionmailer was resolved to 4.1.5, which depends on
  actionpack was resolved to 4.1.5, which depends on
actionview was resolved to 4.1.5, which depends on
  activesupport was resolved to 4.1.5, which depends on
json



$ ./bin/rails s
/home/phr/src/ruby/rails/domain-sf/vendor/bundle/ruby/2.6.0/gems/activesupport-4.1.5/lib/active_support/core_ext/object/duplicable.rb:82:
warning: BigDecimal.new is deprecated; use BigDecimal() method 
instead.

=> Booting Puma
=> Rails 4.1.5 application starting in development on


Did you originally develop this Rails 4.1.5 app using Ruby 2.6.0? Or
I guess more exactly have you been running it on that Ruby version
successfully?



I can't remember what version of Ruby it was - it was from earlier than 
2015 . . it was running on whatever version of Ruby that was in the 
container - which is gone because the whole docker setup was corrupted . 
. I may have backups on old hard disks but it would take too long to try 
and re-create old OS environment, Docker version etc so I thought the 
best thing to do was just the Rails app running directly on my current 
machine (Linux Fedora 31).


Thanks,

Phil.
--
Philip Rhoades

PO Box 896
Cowra  NSW  2794
Australia
E-mail:  p...@pricom.com.au

--
You received this message because you are subscribed to the Google Groups "Ruby on 
Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/86d95cffebf21738357c0028368ec698%40lev.com.au.


[Rails] Old Rails app from Docker Container - trying to run natively again . .

2020-03-14 Thread Philip Rhoades

People,

Docker crashed and I lost the Rails container so I have to go back to 
the original source.


Could someone suggest how I could fix the problem seen below? - I 
deleted the Gemfile.lock file first.


Thanks,

Phil.

$ bundle install --path vendor/bundle
.
.
Bundle complete! 15 Gemfile dependencies, 54 gems now installed.
Bundled gems are installed into `./vendor/bundle`

$ ./bin/rails s
/home/phr/src/ruby/rails/domain-sf/vendor/bundle/ruby/2.6.0/gems/activesupport-4.1.5/lib/active_support/core_ext/object/duplicable.rb:82: 
warning: BigDecimal.new is deprecated; use BigDecimal() method instead.

=> Booting Puma
=> Rails 4.1.5 application starting in development on 
http://0.0.0.0:3000

=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider 
using 127.0.0.1 (--binding option)

=> Ctrl-C to shutdown server
/home/phr/src/ruby/rails/domain-sf/vendor/bundle/ruby/2.6.0/gems/activesupport-4.1.5/lib/active_support/core_ext/numeric/conversions.rb:121: 
warning: constant ::Fixnum is deprecated
/home/phr/src/ruby/rails/domain-sf/vendor/bundle/ruby/2.6.0/gems/activesupport-4.1.5/lib/active_support/core_ext/numeric/conversions.rb:121: 
warning: constant ::Bignum is deprecated

Exiting
Traceback (most recent call last):
6734: from ./bin/rails:5:in `'
6733: from ./bin/rails:5:in `require'
	6732: from 
/home/phr/src/ruby/rails/domain-sf/vendor/bundle/ruby/2.6.0/gems/railties-4.1.5/lib/rails/commands.rb:17:in 
`'
	6731: from 
/home/phr/src/ruby/rails/domain-sf/vendor/bundle/ruby/2.6.0/gems/railties-4.1.5/lib/rails/commands/commands_tasks.rb:40:in 
`run_command!'
	6730: from 
/home/phr/src/ruby/rails/domain-sf/vendor/bundle/ruby/2.6.0/gems/railties-4.1.5/lib/rails/commands/commands_tasks.rb:76:in 
`server'
	6729: from 
/home/phr/src/ruby/rails/domain-sf/vendor/bundle/ruby/2.6.0/gems/railties-4.1.5/lib/rails/commands/commands_tasks.rb:76:in 
`tap'
	6728: from 
/home/phr/src/ruby/rails/domain-sf/vendor/bundle/ruby/2.6.0/gems/railties-4.1.5/lib/rails/commands/commands_tasks.rb:81:in 
`block in server'
	6727: from 
/home/phr/src/ruby/rails/domain-sf/vendor/bundle/ruby/2.6.0/gems/railties-4.1.5/lib/rails/commands/server.rb:67:in 
`start'

 ... 6722 levels...
	   4: from 
/home/phr/src/ruby/rails/domain-sf/vendor/bundle/ruby/2.6.0/gems/activesupport-4.1.5/lib/active_support/core_ext/numeric/conversions.rb:131:in 
`block (2 levels) in '
	   3: from 
/home/phr/src/ruby/rails/domain-sf/vendor/bundle/ruby/2.6.0/gems/activesupport-4.1.5/lib/active_support/core_ext/numeric/conversions.rb:131:in 
`block (2 levels) in '
	   2: from 
/home/phr/src/ruby/rails/domain-sf/vendor/bundle/ruby/2.6.0/gems/activesupport-4.1.5/lib/active_support/core_ext/numeric/conversions.rb:131:in 
`block (2 levels) in '
	   1: from 
/home/phr/src/ruby/rails/domain-sf/vendor/bundle/ruby/2.6.0/gems/activesupport-4.1.5/lib/active_support/core_ext/numeric/conversions.rb:131:in 
`block (2 levels) in '
/home/phr/src/ruby/rails/domain-sf/vendor/bundle/ruby/2.6.0/gems/activesupport-4.1.5/lib/active_support/core_ext/numeric/conversions.rb:131:in 
`block (2 levels) in ': stack level too deep 
(SystemStackError)


--
Philip Rhoades

PO Box 896
Cowra  NSW  2794
Australia
E-mail:  p...@pricom.com.au

--
You received this message because you are subscribed to the Google Groups "Ruby on 
Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/f989a2fb7edae3a2c7fa6cd86675ec91%40pricom.com.au.


[Rails] Meals on Wheels - existing meal ordering app?

2019-02-18 Thread Philip Rhoades

People,

I have offered to volunteer IT advice to the local Meals on Wheels group 
- they have an existing informational web site and as a first step I 
have created an interactive PDF form for them so that clients can fill 
in a form on their computer and email it back to MoW.  The next step is 
an on-line ordering setup and I could knock up a quick Rails system but 
before reinventing wheels, I went searching for something that is 
already working but couldn't find anything on GitHub or GitLab - is 
anyone aware of a simple system that is already in use?


In this case we are talking about people ordering frozen meals - so 
someone might choose a dozen meals from a selection of a 100+.


Thanks,

Phil.
--
Philip Rhoades

PO Box 896
Cowra  NSW  2794
Australia
E-mail:  p...@pricom.com.au

--
You received this message because you are subscribed to the Google Groups "Ruby on 
Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/ac7fc496d2da76e1d6655759bbd91325%40pricom.com.au.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Branching records structure + "accordion" pages

2018-05-05 Thread Philip Rhoades

David,


On 2018-05-05 13:10, David Merrick wrote:

Hi Philip I don 't think a DB for you navigation is going to solve
your problem. I think you need to incorporate Bread Crumbs into your
pages.

For example once you go to this page http://freezephil.org/ you have
no way of getting back to the Previous Page or Home Page.

Solution One https://www.w3schools.com/howto/howto_css_breadcrumbs.asp

Solution Two uses Bootstrap
https://v4-alpha.getbootstrap.com/components/breadcrumb/



Thanks for the quick response!  I will have a look at those links.

Regards,

Phil.



Cheers Dave

On Sat, May 5, 2018 at 2:08 PM, Philip Rhoades <p...@pricom.com.au>
wrote:


People,

Mainly as a Rails learning exercise I have been thinking about
converting my plain HTML + JS "accordion" site:

http://philiprhoades.org

to Rails to enable a faster and more general-purpose UI for adding
new pages and info.  What I would like is a branching tree structure
of accordion pages but I am trying to work out how this structure
might be represented in the DB . .

Comments about whether this is a sensible thing to attempt and how
the DB record structure might work are appreciated . .

Thanks,

Phil.
--
Philip Rhoades

PO Box 896
Cowra  NSW  2794
Australia
E-mail:  p...@pricom.com.au

--
You received this message because you are subscribed to the Google
Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to
rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit


https://groups.google.com/d/msgid/rubyonrails-talk/4c5b7453b3e9f41951f079ac8c6478d7%40pricom.com.au

[1].
For more options, visit https://groups.google.com/d/optout [2].


--

Dave Merrick

Daves Web Designs

Website http://www.daveswebdesigns.co.nz/

Email merrick...@gmail.com

Ph   03 216 2053

Cell 027 3089 169

 --
You received this message because you are subscribed to the Google
Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to
rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKbkNftmwe%3D4M%3D0zxo4Q-qdDUy%2BR9-qkwx_3Xs23XW7eQQ%40mail.gmail.com
[3].
For more options, visit https://groups.google.com/d/optout.


Links:
--
[1]
https://groups.google.com/d/msgid/rubyonrails-talk/4c5b7453b3e9f41951f079ac8c6478d7%40pricom.com.au
[2] https://groups.google.com/d/optout
[3]
https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKbkNftmwe%3D4M%3D0zxo4Q-qdDUy%2BR9-qkwx_3Xs23XW7eQQ%40mail.gmail.com?utm_medium=email_source=footer


--
Philip Rhoades

PO Box 896
Cowra  NSW  2794
Australia
E-mail:  p...@pricom.com.au

--
You received this message because you are subscribed to the Google Groups "Ruby on 
Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/162274997baeea6595ede4c6d1e374c9%40pricom.com.au.
For more options, visit https://groups.google.com/d/optout.


[Rails] Branching records structure + "accordion" pages

2018-05-04 Thread Philip Rhoades

People,

Mainly as a Rails learning exercise I have been thinking about 
converting my plain HTML + JS "accordion" site:


  http://philiprhoades.org

to Rails to enable a faster and more general-purpose UI for adding new 
pages and info.  What I would like is a branching tree structure of 
accordion pages but I am trying to work out how this structure might be 
represented in the DB . .


Comments about whether this is a sensible thing to attempt and how the 
DB record structure might work are appreciated . .


Thanks,

Phil.
--
Philip Rhoades

PO Box 896
Cowra  NSW  2794
Australia
E-mail:  p...@pricom.com.au

--
You received this message because you are subscribed to the Google Groups "Ruby on 
Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/4c5b7453b3e9f41951f079ac8c6478d7%40pricom.com.au.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Converting a Checkbox example to Radio Buttons

2018-03-01 Thread Philip Rhoades

Hassan,


On 2018-03-02 04:21, Hassan Schroeder wrote:
On Thu, Mar 1, 2018 at 8:10 AM, Philip Rhoades <p...@pricom.com.au> 
wrote:



<%= b.label + b.radio_button %>


which actually works in the view but unlike the Checkbox version the 
data is

not saved in the tippers_tips table.


The line above looks a bit iffy to me, but the main question is: what
do you see in your logs? any error messages?

If not use logging statements (or pry) to inspect the params being
returned.



Thanks for responding - I see in the log when I edit a Tipper:

Processing by TippersController#update as HTML
  Parameters: {"utf8"=>"✓", 
"authenticity_token"=>"AhTjh08BAh6NALIeQ5yc7qVvjO8S6rnBaCQlsocM6ffiVkKMo2eKaAmP/QBA2Iiu79naCW+Pd8XZsTMbnYbutQ==", 
"tipper"=>{"fname"=>"Jocelyn", "tip_ids"=>"1"}, "commit"=>"Update 
Tipper", "id"=>"3"}
  Tipper Load (0.1ms)  SELECT  "tippers".* FROM "tippers" WHERE 
"tippers"."id" = ? LIMIT ?  [["id", 3], ["LIMIT", 1]]

Unpermitted parameter: tip_ids

During the tables generation I did:

  rails g migration CreateJoinTableTipTipper tip tipper

and the only two mentions of "tip_ids" is in 
app/views/tippers/_form.html.erb :


  
<%= f.label "Tip" %>
<%= f.collection_radio_buttons( :tip_ids, Tip.all, :id, :teams ) do 
|b| %>

  
<%= b.radio_button %>
    <%= b.label %>
  
<% end %>
  

and app/controllers/tippers_controller.rb :

  params.require(:tipper).permit(:fname, tip_ids:[])

I deleted "[]" since there should be only one tip id returned but that 
caused and error . .


Thanks,

Phil.
--
Philip Rhoades

PO Box 896
Cowra  NSW  2794
Australia
E-mail:  p...@pricom.com.au

--
You received this message because you are subscribed to the Google Groups "Ruby on 
Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/fd8893daf30eb739c87670a7f1cd9d5b%40pricom.com.au.
For more options, visit https://groups.google.com/d/optout.


[Rails] Converting a Checkbox example to Radio Buttons

2018-03-01 Thread Philip Rhoades

People,

I have successfully worked my way through this exercise:

  https://www.sitepoint.com/save-multiple-checkbox-values-database-rails

(but changing "professors" to "tippers" and "expertises" to "tips" - for 
a football tipping app).


Then the only change I made was to: app/views/tippers/_form.html.erb

from:


  <%= f.label "Tip" %>
  <%= f.collection_check_boxes :tip_ids, Tip.all, :id, :teams do |b| %>

  <%= b.check_box %>
  <%= b.label %>

  <% end %>


to:

  
<%= f.label "Tip" %>
<%= f.collection_radio_buttons( :tip_ids, Tip.all, :id, :teams ) do 
|b| %>

  
<%= b.label + b.radio_button %>
  
<% end %>
  

which actually works in the view but unlike the Checkbox version the 
data is not saved in the tippers_tips table.


What am I missing?

Thanks,

Phil.
--
Philip Rhoades

PO Box 896
Cowra  NSW  2794
Australia
E-mail:  p...@pricom.com.au

--
You received this message because you are subscribed to the Google Groups "Ruby on 
Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/7be5d27039e9136ba411320796e1c810%40pricom.com.au.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Re: Suggestion for open source projects to learn

2017-11-23 Thread Philip Rhoades

Chatty,


On 2017-11-24 07:20, Chatty Maps wrote:

Hello Kishore,

I have an open source project that I could do with some help on. Have
a look:

https://github.com/etewiah/property_web_builder

If you are intersted, let me know and I can guide your through some of
the things that need to be done.



I am hardly a Rails expert but I am interested in this app - it could be 
useful for me to use to sell building lots in my "Life Extension 
village" here:


  http://lev.com.au

I will play around with the app and see how I go!

Thanks!

Phil.



Cheers,

Ed

On Sunday, November 12, 2017 at 8:52:23 AM UTC, Kishore Srinivas
wrote:


I just finished the official Rails 5 blog app , and now  am looking
for a good open source (rails 5) to learn more and be
comfortable,which one would you highly recommend to pick up the pace
? Thank you !


 --
You received this message because you are subscribed to the Google
Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to
rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/8074bdde-503b-43b8-91e8-6d0507604dd3%40googlegroups.com
[1].
For more options, visit https://groups.google.com/d/optout.


Links:
--
[1]
https://groups.google.com/d/msgid/rubyonrails-talk/8074bdde-503b-43b8-91e8-6d0507604dd3%40googlegroups.com?utm_medium=email_source=footer


--
Philip Rhoades

PO Box 896
Cowra  NSW  2794
Australia
E-mail:  p...@pricom.com.au

--
You received this message because you are subscribed to the Google Groups "Ruby on 
Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/7f49c40b7c4437d6c96e8a8832d3a39f%40philiprhoades.org.
For more options, visit https://groups.google.com/d/optout.


[Rails] Really simple Webmail client - sensible on Rails?

2017-03-22 Thread Philip Rhoades

People,

I run a RoundCubeMail Webmail server on Fedora 25 x86_64 and this works 
out very nicely for me wherever I am using a desktop computer with large 
screen but the Android RoundCubeMail app is terrible and other mail apps 
are no good for various reasons.  I am think of building a really simple 
Rails Webmail client - just to read mail in the INBOX initially - and if 
that works out OK - enhancing the client to:


- read other Maildir folders

then:

- add a reply / forward mail option

then:

- add other features in priority order

I was thinking the display of messages would be really simple ie just 
Subject buttons of the mails in a list on the web page which would open 
the mail for reading on clicking / pressing.


Also, that some RAM-based DB could be used for storing the messages read 
in a folder - which would just disappear on logout or get recreated on 
changing folders.


Do people think this viable / worth doing?  Is there a simpler solution? 
 If it is worth doing, I would just put the code up on GitLab to try and 
get some other people interested in further development.


Thanks,

Phil.
--
Philip Rhoades

PO Box 896
Cowra  NSW  2794
Australia
E-mail:  p...@pricom.com.au

--
You received this message because you are subscribed to the Google Groups "Ruby on 
Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/276241035447da87fa99ebd1c3498a95%40pricom.com.au.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] t.string :name, :null = false - is being ignored! (Devise)

2013-10-29 Thread Philip Rhoades

Jordon,


On 2013-10-28 23:41, Jordon Bedwell wrote:

Apparently my laptops touchpad was on so let me reword it:

In Ruby a blank string is not a null bit so if you set :default = 
it will allow blank strings, which is what you consider a null string
even though there is no such thing.  Which means if you want :default
=  you need to have your model validate with :allow_blank = false,
or you need to ALLOW_NULL 0 and remove the :default = .

The preferable solution from both a security and proper application
standpoint is to tell both the model and the db that it doesn't want
null or blank strings because it's faster to have the model do blank?
than it is to hit the db and have it return and error and complete a
cycle (short-circuiting is a good thing.)  The db protection is simply
to protect yourself against manual entries and edge cases in the
application.



Right - I should have realised that what I was looking at was the DB 
stuff - I have found:


.gem/ruby/bundler/gems/devise-4e2cdc2d5b81/lib/devise/models/validatable.rb

and it seems to have some stuff in it that is relevant - I will check 
that out.


Thanks,

Phil.
--
Philip Rhoades

GPO Box 3411
Sydney NSW  2001
Australia
E-mail:  p...@pricom.com.au.

--
You received this message because you are subscribed to the Google Groups Ruby on 
Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/c8799ae41bc6d9e88501751edec7ed43%40localhost.
For more options, visit https://groups.google.com/groups/opt_out.


[Rails] t.string :name, :null = false - is being ignored! (Devise)

2013-10-28 Thread Philip Rhoades

People,

I have included the devise gem in an app and it is going OK but I needed 
a name field as well as the email so I added it to the migration file:


class DeviseCreateUsers  ActiveRecord::Migration
  def change
create_table(:users) do |t|
  ## Database authenticatable
  t.string :name,  :null = false, :default = 
  t.string :email,  :null = false, :default = 
  .
  .

and recreated the DB, the schema.rb:

create_table users, force: true do |t|
t.string   name,   default: , null: false
t.string   email,  default: , null: false
.
.

confirms that the change looks sensible, however when I add a new user, 
I can do it without the user name! - how is that possible?


Any help appreciated!

Thanks,

Phil.
--
Philip Rhoades

GPO Box 3411
Sydney NSW  2001
Australia
E-mail:  p...@pricom.com.au

--
You received this message because you are subscribed to the Google Groups Ruby on 
Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/065b9bd87fb07c98be71910158089f35%40localhost.
For more options, visit https://groups.google.com/groups/opt_out.


[Rails] Any Rails guru around in the next hour or so for a phone consultation at $1 per min ?

2013-07-06 Thread Philip Rhoades

People,

I need advice about the most sensible way to do this UI:

https://docs.google.com/document/d/1HKPIgtxIIZIT5YjBxrZq2Jcma1L8XAEDz8BQ4FGYL0I/pub

ie it is a menu-driven chat environment - the back end is via TCP 
sockets and is already going, I just need to work out how to do the menu 
and and the chatbox itself.


Happy to pay via PayPal or whatever is most convenient.

Thanks,

Phil.
--
Philip Rhoades

GPO Box 3411
Sydney NSW  2001
Australia
E-mail:  p...@pricom.com.au

--
You received this message because you are subscribed to the Google Groups Ruby on 
Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/325713c450436d8fd469773bcefc37b7%40localhost.
For more options, visit https://groups.google.com/groups/opt_out.




[Rails] Re: Anyone using Rails GPG/PGP Encrypted emails with or without Devise?

2013-06-07 Thread Philip Rhoades

andreo,

What exactly are you complaining about? - why waste time if you have 
nothing constructive to add?


Phil.


On 2013-06-07 18:40, and...@benjamin.dk wrote:

http://www.catb.org/esr/faqs/smart-questions.html

On Monday, 3 June 2013 21:11:49 UTC+2, Philip Rhoades wrote:


People,

As the subject says . .

Thanks,

Phil.
--
Philip Rhoades

GPO Box 3411
Sydney NSW 2001
Australia
E-mail: ph...@pricom.com.au


--
Philip Rhoades

GPO Box 3411
Sydney NSW  2001
Australia
E-mail:  p...@pricom.com.au

--
You received this message because you are subscribed to the Google Groups Ruby on 
Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/c51f821c57680e36aeb70b78258ed33a%40localhost?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.




[Rails] Anyone using Rails GPG/PGP Encrypted emails with or without Devise?

2013-06-03 Thread Philip Rhoades

People,

As the subject says . .

Thanks,

Phil.
--
Philip Rhoades

GPO Box 3411
Sydney NSW  2001
Australia
E-mail:  p...@pricom.com.au

--
You received this message because you are subscribed to the Google Groups Ruby on 
Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/b97809b2cc2d94fbb7aa6770d298ff09%40localhost?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.




[Rails] Any Rails + 960gs Gurus here? - zebra striping tables

2013-02-13 Thread Philip Rhoades

People,

For zebra striping tables on basic Rails apps I have quite happily 
used:


  tr class=%= cycle('oddrow', 'evenrow') %

in the table listing in index.html.erb with

  table tr.evenrow { background-color: white; }
  table tr.oddrow { background-color: silver; }

in the application style sheet but I can't get it to work with the 960 
Grid System stuff.


I have messed around using tbody tags and nth-child etc but can't get 
anywhere - anyone got any clues?  I can't find any mailing list or other 
support for 960gs.


Thanks,

Phil.
--
Philip Rhoades

GPO Box 3411
Sydney NSW  2001
Australia
E-mail:  p...@pricom.com.au

--
You received this message because you are subscribed to the Google Groups Ruby on 
Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] Any Rails + 960gs Gurus here? - zebra striping tables

2013-02-13 Thread Philip Rhoades

Tom,

I have tried that (if you read more closely you will see) - that is why 
I was asking if anyone was familiar with the 960gs - their existing 
style sheets seem to be blocking whatever I try . .


Thanks,

Phil.


On 2013-02-14 06:26, Tom Meinlschmidt wrote:

forget this, try http://www.w3.org/Style/Examples/007/evenodd.en.html

- so, make your strips with CSS, not with your application

tom

On Feb 13, 2013, at 20:24 , Philip Rhoades p...@pricom.com.au wrote:


People,

For zebra striping tables on basic Rails apps I have quite happily 
used:


 tr class=%= cycle('oddrow', 'evenrow') %

in the table listing in index.html.erb with

 table tr.evenrow { background-color: white; }
 table tr.oddrow { background-color: silver; }

in the application style sheet but I can't get it to work with the 
960 Grid System stuff.


I have messed around using tbody tags and nth-child etc but can't 
get anywhere - anyone got any clues?  I can't find any mailing list or 
other support for 960gs.


Thanks,

Phil.
--
Philip Rhoades

GPO Box 3411
Sydney NSW  2001
Australia
E-mail:  p...@pricom.com.au

--
You received this message because you are subscribed to the Google 
Groups Ruby on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, 
send an email to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to 
rubyonrails-talk@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
===
Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache

www.meinlschmidt.com  www.maxwellrender.cz
===


--
Philip Rhoades

GPO Box 3411
Sydney NSW  2001
Australia
E-mail:  p...@pricom.com.au

--
You received this message because you are subscribed to the Google Groups Ruby on 
Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Rails] Any Rails + 960gs Gurus here? - zebra striping tables

2013-02-13 Thread Philip Rhoades

Tom,

I put mine last but it didn't help.

However, then I used the inspector tool which eventually led me to a 
better understanding of the supplied stylesheets - and I realised there 
was already something there for ODD rows ONLY - I missed it before 
because I was expecting a mention of both odd and even next to each 
other - in this case, tr.odd just makes the odd rows have a background 
of white when normally all the rows will have a background of light 
grey.


Thanks!

Phil.


On 2013-02-14 06:58, Tom Meinlschmidt wrote:

did you check order of your stylesheets? Your stylesheet should be
the last one. Use inspector tool and check style property.

or add important to your definition

eg

table.mytable tr:nth-child(even) {background: #CCC !important;}

tom

On Feb 13, 2013, at 20:43 , Philip Rhoades p...@pricom.com.au wrote:


Tom,

I have tried that (if you read more closely you will see) - that is 
why I was asking if anyone was familiar with the 960gs - their 
existing style sheets seem to be blocking whatever I try . .


Thanks,

Phil.


On 2013-02-14 06:26, Tom Meinlschmidt wrote:
forget this, try 
http://www.w3.org/Style/Examples/007/evenodd.en.html

- so, make your strips with CSS, not with your application
tom
On Feb 13, 2013, at 20:24 , Philip Rhoades p...@pricom.com.au 
wrote:

People,
For zebra striping tables on basic Rails apps I have quite happily 
used:

tr class=%= cycle('oddrow', 'evenrow') %
in the table listing in index.html.erb with
table tr.evenrow { background-color: white; }
table tr.oddrow { background-color: silver; }
in the application style sheet but I can't get it to work with the 
960 Grid System stuff.
I have messed around using tbody tags and nth-child etc but can't 
get anywhere - anyone got any clues?  I can't find any mailing list 
or other support for 960gs.

Thanks,
Phil.
--
Philip Rhoades
GPO Box 3411
Sydney NSW  2001
Australia
E-mail:  p...@pricom.com.au
--
You received this message because you are subscribed to the Google 
Groups Ruby on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, 
send an email to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to 
rubyonrails-talk@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

--
===
Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp 
Filer/NetCache

www.meinlschmidt.com  www.maxwellrender.cz
===


--
Philip Rhoades

GPO Box 3411
Sydney NSW  2001
Australia
E-mail:  p...@pricom.com.au

--
You received this message because you are subscribed to the Google 
Groups Ruby on Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, 
send an email to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to 
rubyonrails-talk@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
===
Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache

www.meinlschmidt.com  www.maxwellrender.cz
===


--
Philip Rhoades

GPO Box 3411
Sydney NSW  2001
Australia
E-mail:  p...@pricom.com.au

--
You received this message because you are subscribed to the Google Groups Ruby on 
Rails: Talk group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[Rails] Fedora 17 and passenger-install-apache2-module problem

2012-08-28 Thread Philip Rhoades

People,

I have seen a comment that Phusion does not support Ruby 1.9 on Fedora 
17 yet? - has anyone got this build script working on F17 x86_64? - I 
get errors that I can find no help for by Googling.


I can supply a 70KB output file if someone could help with this problem 
- the tail of which is:


ext/boost/exception/info.hpp:172:69:   required from 'const E 
boost::exception_detail::set_info(const E, const boost::error_infoTag, 
T) [with E = boost::unknown_exception; Tag = 
boost::tag_original_exception_type; T = const std::type_info*]'
ext/boost/exception/info.hpp:193:46:   required from 'typename 
boost::enable_ifboost::exception_detail::derives_boost_exceptionE, 
const E::type boost::operator(const E, const boost::error_infoTag, 
T) [with E = boost::unknown_exception; Tag = 
boost::tag_original_exception_type; T = const std::type_info*; typename 
boost::enable_ifboost::exception_detail::derives_boost_exceptionE, 
const E::type = const boost::unknown_exception]'
ext/boost/exception/detail/exception_ptr.hpp:134:13:   required from 
'void boost::unknown_exception::add_original_type(const E) [with E = 
std::exception]'
ext/boost/exception/detail/exception_ptr.hpp:113:32:   required from 
here
ext/boost/checked_delete.hpp:34:5: warning: deleting object of 
polymorphic class type 
'boost::error_infoboost::tag_original_exception_type, const 
std::type_info*' which has non-virtual destructor might cause undefined 
behaviour [-Wdelete-non-virtual-dtor]

rake aborted!
Command failed with status (1): [g++ -Iext -Iext/common -Iext/libev 
-fPIC -...]


Tasks: TOP = apache2 = ext/apache2/mod_passenger.so = 
ext/apache2/module_libpassenger_common.a = 
ext/apache2/module_libpassenger_common/aggregate.o


Thanks,

Phil.
--
Philip Rhoades

GPO Box 3411
Sydney NSW  2001
Australia
E-mail:  p...@pricom.com.au

--
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@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[Rails] After moving from Ruby 1.8.7 to 1.9.3 - test/unit/error (LoadError)

2012-07-16 Thread Philip Rhoades

People,

For my old library app I did with Rails 2.1.1, if I use Fedora 16/Ruby 
1.8.6, everything is OK.  If I copy the app to a Fedora 17/Ruby 1.9.3 
setup and reinstall all the old Gems and run:


  ./script/server

I get:

/usr/share/rubygems/rubygems/custom_require.rb:55:in `require': cannot 
load such file -- test/unit/error (LoadError)

from /usr/share/rubygems/rubygems/custom_require.rb:55:in `require'
from 
/usr/local/share/gems/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:510:in 
`block in require'
from 
/usr/local/share/gems/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:355:in 
`new_constants_in'
from 
/usr/local/share/gems/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:510:in 
`require'
from 
/usr/local/share/gems/gems/activesupport-2.1.1/lib/active_support/deprecation.rb:204:in 
`top (required)'

from /usr/share/rubygems/rubygems/custom_require.rb:55:in `require'
from /usr/share/rubygems/rubygems/custom_require.rb:55:in `require'
from 
/usr/local/share/gems/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:510:in 
`block in require'
from 
/usr/local/share/gems/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:355:in 
`new_constants_in'
from 
/usr/local/share/gems/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:510:in 
`require'
from 
/usr/local/share/gems/gems/activesupport-2.1.1/lib/active_support.rb:40:in 
`top (required)'

from /usr/share/rubygems/rubygems/custom_require.rb:55:in `require'
from /usr/share/rubygems/rubygems/custom_require.rb:55:in `require'
from /usr/local/share/gems/gems/rails-2.1.1/lib/commands/server.rb:1:in 
`top (required)'

from /usr/share/rubygems/rubygems/custom_require.rb:55:in `require'
from /usr/share/rubygems/rubygems/custom_require.rb:55:in `require'
from ./script/server:3:in `main'

I have found similar problems reported and so have messed around with 
the paths in script/server:


#!/usr/bin/env ruby

# $:  File.dirname(__FILE__)
# $:  File.dirname(__FILE__) + '..'
# $:  File.dirname(__FILE__) + '../..'
# $:  File.join(File.dirname(__FILE__),'..')
# require File.dirname(__FILE__) + '/../config/boot'
# require File.expand_path('../../config/boot', __FILE__)
# require File.expand_path(__FILE__)+'/../../config/boot'

APP_PATH = File.expand_path('../../config/application',  __FILE__)
require File.expand_path('../../config/boot',  __FILE__)

# require 'rails/commands'
require 'commands/server'

Any suggestions? (besides writing the app from scratch in the new 
environment).


Thanks,

Phil.

--
Philip Rhoades

GPO Box 3411
Sydney NSW  2001
Australia
E-mail:  p...@pricom.com.au

--
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@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en-US.



[Rails] Why can't I just do RUBY_VERSION = 1.9.3 in config/environment.rb ?

2012-06-04 Thread Philip Rhoades

People,

Most of my Rails apps are using Ruby v1.8.7 but I need to start using 
Ruby v1.9.3 for one app in particular and to start learning Rails 3.2.  
It seems if I could install Ruby v1.9.3 side by side with v1.8.7 on my 
Fedora 16 x86_64 server, I should be able to have something like this:


  RUBY_VERSION = 1.9.3

in an app's config/environment.rb file and everything would just work 
?


I have messed around with RVM in the past trying to get system-wide 
installs to work with both Ruby versions but just got into trouble and 
was only ever able to get one version of Ruby working at once with 
Apache.


Suggestions?

Thanks,

Phil.
--
Philip Rhoades

GPO Box 3411
Sydney NSW  2001
Australia
E-mail:  p...@pricom.com.au

--
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@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



Re: [Rails] Why can't I just do RUBY_VERSION = 1.9.3 in config/environment.rb ?

2012-06-04 Thread Philip Rhoades

Jason,


On 2012-06-05 04:53, Jason Fleetwood-Boldt wrote:

Phillip,
this problem has already been solved: use RVM. Create a file called
.rvmrc and put it into the root directory of your project, like
this:

rvm use 1.9.2-p290

Whenever you switch into that project (in your terminal) RVM will
automatically switch ruby versions.



I am aware of that but that is not what I need . .



To get your server to recognize  a different ruby version is a little
different.

Yea, I think with Passenger/Apache you can configure the
PassengerRuby setting on your site to use the Ruby binary you 
specify.

I don't think there's a way to configure it in the app itself.



Passenger v3.2 is supposed to be able to support multiple Rubies - I 
have sent Phusion a note about paid support for using the pre-release 
version.




think
about it, how would Ruby itself read the config file before
determining which ruby binary to use? It's impossible--- catch 22, it
has to be in the server's configuration



Of course . . how about a .rubyrc in the root dir of the project that 
Ruby itself would look at? - I suppose even that would need some sort of 
Ruby pre-processing . .


Thanks,

Phil.




-Jason



On Jun 4, 2012, at 2:43 PM, Philip Rhoades wrote:


People,

Most of my Rails apps are using Ruby v1.8.7 but I need to start 
using Ruby v1.9.3 for one app in particular and to start learning 
Rails 3.2.  It seems if I could install Ruby v1.9.3 side by side with 
v1.8.7 on my Fedora 16 x86_64 server, I should be able to have 
something like this:


 RUBY_VERSION = 1.9.3

in an app's config/environment.rb file and everything would just 
work ?


I have messed around with RVM in the past trying to get system-wide 
installs to work with both Ruby versions but just got into trouble and 
was only ever able to get one version of Ruby working at once with 
Apache.


Suggestions?

Thanks,

Phil.
--
Philip Rhoades

GPO Box 3411
Sydney NSW  2001
Australia
E-mail:  p...@pricom.com.au

--
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@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.





--
Philip Rhoades

GPO Box 3411
Sydney NSW  2001
Australia
E-mail:  p...@pricom.com.au

--
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@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] Quick and Dirty SSL for a Rails app

2011-10-27 Thread Philip Rhoades

People,

To improve security for things like SquirrelMail and RoundCubeMail, I 
can just place the mail app directory into the Apache SSL dir, add some 
stuff to /etc/httpd/conf.d/ssl.conf and it just works when I point the 
browser using https: . . ..  Is there a quick method like that for 
Rails apps? ie not having to make any changes to the Rails app itself?  
I can't get it to work (I am using Apache and Passenger on Fedora 14 
x86_64).


Thanks,

Phil.
--
Philip Rhoades

GPO Box 3411
Sydney NSW  2001
Australia
E-mail:  p...@pricom.com.au

--
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@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] Rails 3.1 textile/RedCloth for static pages?

2011-10-13 Thread Philip Rhoades
People,

I have used textile markup for static pages in the past - it seems I
didn't need to use the Acts as Textiled plugin - but only had to gem
install RedCloth and rename view .erb files to have a .red
extension. However I have just started experimenting with Rails 3.1
and haven't been able to get textile markup static pages to work (I
have installed the gem).

Could someone tell me what steps are necessary?

Thanks,

Phil.
--
Philip Rhoades

GPO Box 3411
Sydney NSW  2001
Australia
E-mail:  p...@pricom.com.au

-- 
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@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.



[Rails] Writing content in Textile format instead of HTML

2009-12-26 Thread Philip Rhoades
People,

I have a simple rails web site and I have been creating some of the 
content files with HTML but thought I should be able to write them using 
Textile instead.  eg I have an index file:

index.html.erb

that has links in it of the form:

a href= 
http://domain_name.com.au/rails_project_name/mvc_name/file_name; 
Description/a

I have been looking around for hours but can't find anything that helps 
- I can do textilize with fields retrieved from database records but 
can't see how to do it with content of URL files.

I presume it is possible?  How?

Thanks,

Phil.
-- 
Philip Rhoades

GPO Box 3411
Sydney NSW  2001
Australia
E-mail:  p...@pricom.com.au

--

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 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.