Re: Extensions: Asset Manager Demo

Whoops, didn’t send this to the list:

This works for me:

http://dev.radiantcms.org/svn/radiant/branches/mental/radiant/

Keith B.
[email protected]
Tel: +49-7731-7983830

On Nov 23, 2006, at 5:22 AM, David Minor wrote:
Keith,

I’m very interested in trying out your asset manager and check out
RPS2, but I can’t seem to get a checkout of the mental branch. Can
you point me to a svn url that doesn’t require user/pass to get mental?

Thanks,
dm

Keith B.
[email protected]
Tel: +49-7731-7983830

Hi,

I have just gotten the asset manager to work. First I had the exact
same problem as you Jonathan. It seems like it’s only uploading the
filename: “100_1134.JPG”:String. I changed the enctype from
“multipart” to “multipart/form-data” in views/admin/asset/new.rhtml
and after that it worked perfectly. Perhaps this will work for you as
well.

The asset manager looks very nice Keith. Thanks for sharing it!

Best regards
Frode

On 11/23/06, Jonathan Métillon [email protected] wrote:

handle_new_or_edit_post' vendor/rails/actionpack/lib/action_controller/filters.rb:622:inprocess_without_session_management_support’
/usr/lib/ruby/1.8/webrick/server.rb:95:in start' vendor/rails/railties/lib/commands/server.rb:39perform_action_without_filters’
perform_action_without_rescue' vendor/rails/actionpack/lib/action_controller/base.rb:330:inprocess’
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start’
Request
name: Jonathan
confirm_password: true

Keith B.
I’m very interested in trying out your asset manager and check out RPS2, but I can’t seem to get a checkout of the mental branch. Can you point me to a svn url that doesn’t require user/pass to get mental?


« La perfection est atteinte non quand il ne reste rien à ajouter,
mais quand il ne reste rien à enlever. » --Antoine de Saint-Exupéry


Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant


Frode Nerbråten
[email protected]

So multipart/form-data it is. I just changed it.

Keith B.
[email protected]

Hi Keith,

That looks fantastic and that’s exactly what I needed. I hope it will
be able to generate thumbnails!

I followed the installation instructions and the extension is enabled.
I go to the upload image page and input a title and a picture. But
when I submit, I get this error:

NoMethodError in Admin/assetController#new

undefined method `content_type’ for “100_1134.JPG”:String

RAILS_ROOT: script/…/config/…
Application Trace | Framework Trace | Full Trace

vendor/plugins/acts_as_attachment/lib/technoweenie/acts_as_attachment/instance_methods.rb:56:in
uploaded_data=' vendor/rails/activerecord/lib/active_record/base.rb:1660:inattributes=’
vendor/rails/activerecord/lib/active_record/base.rb:1659:in
attributes=' vendor/extensions/assets/app/controllers/admin/asset_controller.rb:74:inhandle_new_or_edit_post’
vendor/extensions/assets/app/controllers/admin/asset_controller.rb:16:in
new' vendor/rails/actionpack/lib/action_controller/base.rb:1068:inperform_action_without_filters’
vendor/rails/actionpack/lib/action_controller/filters.rb:635:in
call_filter' vendor/rails/actionpack/lib/action_controller/filters.rb:641:incall_filter’
vendor/rails/actionpack/lib/action_controller/filters.rb:438:in call' vendor/rails/actionpack/lib/action_controller/filters.rb:640:incall_filter’
vendor/rails/actionpack/lib/action_controller/filters.rb:641:in
call_filter' vendor/rails/actionpack/lib/action_controller/filters.rb:438:incall’
vendor/rails/actionpack/lib/action_controller/filters.rb:640:in
call_filter' vendor/rails/actionpack/lib/action_controller/filters.rb:622:inperform_action_without_benchmark’
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in
perform_action_without_rescue' /usr/lib/ruby/1.8/benchmark.rb:293:inmeasure’
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in
perform_action_without_rescue' vendor/rails/actionpack/lib/action_controller/rescue.rb:81:inperform_action’
vendor/rails/actionpack/lib/action_controller/base.rb:427:in
process_without_filters' vendor/rails/actionpack/lib/action_controller/filters.rb:627:inprocess_without_session_management_support’
vendor/rails/actionpack/lib/action_controller/session_management.rb:114:in
process' vendor/rails/actionpack/lib/action_controller/base.rb:330:inprocess’
vendor/rails/railties/lib/dispatcher.rb:41:in dispatch' vendor/rails/railties/lib/webrick_server.rb:110:inhandle_dispatch’
vendor/rails/railties/lib/webrick_server.rb:76:in service' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:inservice’
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in run' /usr/lib/ruby/1.8/webrick/server.rb:173:instart_thread’
/usr/lib/ruby/1.8/webrick/server.rb:162:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:95:instart’
/usr/lib/ruby/1.8/webrick/server.rb:92:in start' /usr/lib/ruby/1.8/webrick/server.rb:23:instart’
/usr/lib/ruby/1.8/webrick/server.rb:82:in start' vendor/rails/railties/lib/webrick_server.rb:63:indispatch’
vendor/rails/railties/lib/commands/servers/webrick.rb:59
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in require' vendor/rails/activesupport/lib/active_support/dependencies.rb:489:inrequire’
vendor/rails/activesupport/lib/active_support/dependencies.rb:337:in
new_constants_in' vendor/rails/activesupport/lib/active_support/dependencies.rb:489:inrequire’
vendor/rails/railties/lib/commands/server.rb:39
script/server:3

vendor/plugins/acts_as_attachment/lib/technoweenie/acts_as_attachment/instance_methods.rb:56:in
uploaded_data=' vendor/rails/activerecord/lib/active_record/base.rb:1660:inattributes=’
vendor/rails/activerecord/lib/active_record/base.rb:1659:in
attributes=' vendor/extensions/assets/app/controllers/admin/asset_controller.rb:74:inhandle_new_or_edit_post’
vendor/extensions/assets/app/controllers/admin/asset_controller.rb:16:in
new' vendor/rails/actionpack/lib/action_controller/base.rb:1068:inperform_action_without_filters’
vendor/rails/actionpack/lib/action_controller/filters.rb:635:in
call_filter' vendor/rails/actionpack/lib/action_controller/filters.rb:641:incall_filter’
vendor/rails/actionpack/lib/action_controller/filters.rb:438:in call' vendor/rails/actionpack/lib/action_controller/filters.rb:640:incall_filter’
vendor/rails/actionpack/lib/action_controller/filters.rb:641:in
call_filter' vendor/rails/actionpack/lib/action_controller/filters.rb:438:incall’
vendor/rails/actionpack/lib/action_controller/filters.rb:640:in
call_filter' vendor/rails/actionpack/lib/action_controller/filters.rb:622:inperform_action_without_benchmark’
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in
perform_action_without_rescue' /usr/lib/ruby/1.8/benchmark.rb:293:inmeasure’
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in
perform_action_without_rescue' vendor/rails/actionpack/lib/action_controller/rescue.rb:81:inperform_action’
vendor/rails/actionpack/lib/action_controller/base.rb:427:in
process_without_filters' vendor/rails/actionpack/lib/action_controller/filters.rb:627:inprocess_without_session_management_support’
vendor/rails/actionpack/lib/action_controller/session_management.rb:114:in
process' vendor/rails/actionpack/lib/action_controller/base.rb:330:inprocess’
vendor/rails/railties/lib/dispatcher.rb:41:in dispatch' vendor/rails/railties/lib/webrick_server.rb:110:inhandle_dispatch’
vendor/rails/railties/lib/webrick_server.rb:76:in service' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:inservice’
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in run' /usr/lib/ruby/1.8/webrick/server.rb:173:instart_thread’
/usr/lib/ruby/1.8/webrick/server.rb:162:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:95:instart’
/usr/lib/ruby/1.8/webrick/server.rb:92:in start' /usr/lib/ruby/1.8/webrick/server.rb:23:instart’
/usr/lib/ruby/1.8/webrick/server.rb:82:in start' vendor/rails/railties/lib/webrick_server.rb:63:indispatch’
vendor/rails/railties/lib/commands/servers/webrick.rb:59
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in require' vendor/rails/activesupport/lib/active_support/dependencies.rb:489:inrequire’
vendor/rails/activesupport/lib/active_support/dependencies.rb:337:in
new_constants_in' vendor/rails/activesupport/lib/active_support/dependencies.rb:489:inrequire’
vendor/rails/railties/lib/commands/server.rb:39
script/server:3

Request

Parameters: {“continue”=>“Save and Continue Editing”,
“asset”=>{“title”=>“Ongle transparent avec nacre et perles #1”,
“uploaded_data”=>“100_1134.JPG”}}

Show session dump


:user: !ruby/object:User
attributes:
name: Jonathan
updated_at: 2006-11-19 01:35:06
created_by: “1”
admin: “1”
updated_by: “1”
id: “1”
password: 0114562f917a53c4ac9f2a843df7316a7aa087b6
login: john
created_at: 2006-11-19 01:21:06
developer: “1”
email: [email protected]
confirm_password: true
created_by:
updated_by:
flash: !map:ActionController::Flash::FlashHash {}

Response
Headers: {“cookie”=>[], “Cache-Control”=>“no-cache”}

On 11/23/06, Keith B. [email protected] wrote:


Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant


« La perfection est atteinte non quand il ne reste rien à ajouter,
mais quand il ne reste rien à enlever. » --Antoine de Saint-Exupéry

You got that right! This one fixed. And now, what about that other
one?..

NoMethodError in Admin/assetController#new

undefined method `tag_with’ for #Asset:0xb72cad14

RAILS_ROOT: script/…/config/…
Application Trace | Framework Trace | Full Trace

vendor/rails/activerecord/lib/active_record/base.rb:1848:in
method_missing' vendor/extensions/assets/app/controllers/admin/asset_controller.rb:75:inhandle_new_or_edit_post’
vendor/extensions/assets/app/controllers/admin/asset_controller.rb:16:in
new' vendor/rails/actionpack/lib/action_controller/base.rb:1068:inperform_action_without_filters’
vendor/rails/actionpack/lib/action_controller/filters.rb:635:in
call_filter' vendor/rails/actionpack/lib/action_controller/filters.rb:641:incall_filter’
vendor/rails/actionpack/lib/action_controller/filters.rb:438:in call' vendor/rails/actionpack/lib/action_controller/filters.rb:640:incall_filter’
vendor/rails/actionpack/lib/action_controller/filters.rb:641:in
call_filter' vendor/rails/actionpack/lib/action_controller/filters.rb:438:incall’
vendor/rails/actionpack/lib/action_controller/filters.rb:640:in
call_filter' vendor/rails/actionpack/lib/action_controller/filters.rb:622:inperform_action_without_benchmark’
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in
perform_action_without_rescue' /usr/lib/ruby/1.8/benchmark.rb:293:inmeasure’
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in
perform_action_without_rescue' vendor/rails/actionpack/lib/action_controller/rescue.rb:81:inperform_action’
vendor/rails/actionpack/lib/action_controller/base.rb:427:in
process_without_filters' vendor/rails/actionpack/lib/action_controller/filters.rb:627:inprocess_without_session_management_support’
vendor/rails/actionpack/lib/action_controller/session_management.rb:114:in
process' vendor/rails/actionpack/lib/action_controller/base.rb:330:inprocess’
vendor/rails/railties/lib/dispatcher.rb:41:in dispatch' vendor/rails/railties/lib/webrick_server.rb:110:inhandle_dispatch’
vendor/rails/railties/lib/webrick_server.rb:76:in service' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:inservice’
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in run' /usr/lib/ruby/1.8/webrick/server.rb:173:instart_thread’
/usr/lib/ruby/1.8/webrick/server.rb:162:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:95:instart’
/usr/lib/ruby/1.8/webrick/server.rb:92:in start' /usr/lib/ruby/1.8/webrick/server.rb:23:instart’
/usr/lib/ruby/1.8/webrick/server.rb:82:in start' vendor/rails/railties/lib/webrick_server.rb:63:indispatch’
vendor/rails/railties/lib/commands/servers/webrick.rb:59
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in require' vendor/rails/activesupport/lib/active_support/dependencies.rb:489:inrequire’
vendor/rails/activesupport/lib/active_support/dependencies.rb:337:in
new_constants_in' vendor/rails/activesupport/lib/active_support/dependencies.rb:489:inrequire’
vendor/rails/railties/lib/commands/server.rb:39
script/server:3

vendor/rails/activerecord/lib/active_record/base.rb:1848:in
method_missing' vendor/extensions/assets/app/controllers/admin/asset_controller.rb:75:inhandle_new_or_edit_post’
vendor/extensions/assets/app/controllers/admin/asset_controller.rb:16:in
new' vendor/rails/actionpack/lib/action_controller/base.rb:1068:inperform_action_without_filters’
vendor/rails/actionpack/lib/action_controller/filters.rb:635:in
call_filter' vendor/rails/actionpack/lib/action_controller/filters.rb:641:incall_filter’
vendor/rails/actionpack/lib/action_controller/filters.rb:438:in call' vendor/rails/actionpack/lib/action_controller/filters.rb:640:incall_filter’
vendor/rails/actionpack/lib/action_controller/filters.rb:641:in
call_filter' vendor/rails/actionpack/lib/action_controller/filters.rb:438:incall’
vendor/rails/actionpack/lib/action_controller/filters.rb:640:in
call_filter' vendor/rails/actionpack/lib/action_controller/filters.rb:622:inperform_action_without_benchmark’
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in
perform_action_without_rescue' /usr/lib/ruby/1.8/benchmark.rb:293:inmeasure’
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in
perform_action_without_rescue' vendor/rails/actionpack/lib/action_controller/rescue.rb:81:inperform_action’
vendor/rails/actionpack/lib/action_controller/base.rb:427:in
process_without_filters' vendor/rails/actionpack/lib/action_controller/filters.rb:627:inprocess_without_session_management_support’
vendor/rails/actionpack/lib/action_controller/session_management.rb:114:in
process' vendor/rails/actionpack/lib/action_controller/base.rb:330:inprocess’
vendor/rails/railties/lib/dispatcher.rb:41:in dispatch' vendor/rails/railties/lib/webrick_server.rb:110:inhandle_dispatch’
vendor/rails/railties/lib/webrick_server.rb:76:in service' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:inservice’
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in run' /usr/lib/ruby/1.8/webrick/server.rb:173:instart_thread’
/usr/lib/ruby/1.8/webrick/server.rb:162:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:95:instart’
/usr/lib/ruby/1.8/webrick/server.rb:92:in start' /usr/lib/ruby/1.8/webrick/server.rb:23:instart’
/usr/lib/ruby/1.8/webrick/server.rb:82:in start' vendor/rails/railties/lib/webrick_server.rb:63:indispatch’
vendor/rails/railties/lib/commands/servers/webrick.rb:59
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in require' vendor/rails/activesupport/lib/active_support/dependencies.rb:489:inrequire’
vendor/rails/activesupport/lib/active_support/dependencies.rb:337:in
new_constants_in' vendor/rails/activesupport/lib/active_support/dependencies.rb:489:inrequire’
vendor/rails/railties/lib/commands/server.rb:39
script/server:3

Request

Parameters: {“continue”=>“Save and Continue Editing”,
“asset”=>{“title”=>“Test de photo”,
“uploaded_data”=>#<File:/tmp/CGI22832.1>}}

Response
Headers: {“cookie”=>[], “Cache-Control”=>“no-cache”}

On 11/23/06, Frode Nerbråten [email protected] wrote:

I go to the upload image page and input a title and a picture. But
uploaded_data=' vendor/rails/actionpack/lib/action_controller/filters.rb:640:incall_filter’
vendor/rails/actionpack/lib/action_controller/rescue.rb:81:in perform_action' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:inservice’
vendor/rails/activesupport/lib/active_support/dependencies.rb:489:in require' vendor/extensions/assets/app/controllers/admin/asset_controller.rb:74:in vendor/rails/actionpack/lib/action_controller/filters.rb:640:incall_filter’
vendor/rails/actionpack/lib/action_controller/filters.rb:627:in
/usr/lib/ruby/1.8/webrick/server.rb:162:in start_thread' vendor/rails/activesupport/lib/active_support/dependencies.rb:489:inrequire’

login: john

Headers: {“cookie”=>[], “Cache-Control”=>“no-cache”}

On Nov 23, 2006, at 5:22 AM, David Minor wrote:
Keith B.
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Post: [email protected]
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant


« La perfection est atteinte non quand il ne reste rien à ajouter,
mais quand il ne reste rien à enlever. » --Antoine de Saint-Exupéry

I reinstalled the whole radiant-mental and asset extension. It’s all
good now! Thanks I really like the way it produces icons and
thumbnails.

The only thing is that my girl is not that geek and

<r:asset id=“1”>
!<r:asset_url size=“thumbnail” />!:<r:asset_url size=“normal” />
</r:asset>

Would be easier for her like that

<r:asset_thumbnail id=“1” />

Can I define easily this kind of shortcut?

On 11/24/06, Keith B. [email protected] wrote:

Keith B.


Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:
http://lists.radiantcms.org/mailman/listinfo/radiant


« La perfection est atteinte non quand il ne reste rien à ajouter,
mais quand il ne reste rien à enlever. » --Antoine de Saint-Exupéry

Please check out the latest version (revision 19), this was fixed in
that. I had tagging in, but due to some conflicts with
acts_as_taggable and Radiant itself, I had to remove it. I missed the
one line, line 75 in the AssetController, if you erase that it works.
Like I said, this is fixed in the latest version. I also added the
New Asset button; please move this from the Images directory in the
extension to the Images directory in Public.

Let me know if that works.

Keith B.
[email protected]
Tel: +49-7731-7983830

On Nov 24, 2006, at 11:00 AM, Jonathan Métillon wrote:
You got that right! This one fixed. And now, what about that other
one?..

NoMethodError in Admin/assetController#new

undefined method `tag_with’ for #Asset:0xb72cad14

RAILS_ROOT: script/…/config/…
Application Trace | Framework Trace | Full Trace

vendor/rails/activerecord/lib/active_record/base.rb:1848:in
method_missing' vendor/extensions/assets/app/controllers/admin/asset_controller.rb:75:inhandle_new_or_edit_post’
vendor/extensions/assets/app/controllers/admin/asset_controller.rb:
16:in `new’
vendor/rails/actionpack/lib/action_controller/base.rb:1068:in

Please fell free to give me suggestions on the radius tags, this is
just a sort of first draft.

I made the image tag work both with and without the wrapping asset
tag so you can do either this:

<r:asset id=“1”>
<r:image size=“thumb” />
</r.asset>

or you can use a shortcut:

<r:image size=“thumb” />

I added a new tag, <r:thumbnail />. You can still add a size, though
this refers to the linked image, not the thumbnail. You can also shut
the link off completey with link=“false”. Check out the new version
from SVN (if you don’t have externals set up, just replace lib/
asset_tags.rb, that is all I have changed). This is the file with all
the tags,

Just a note, should you want to change the thumbnail and icon sizes,
this is stored in the Asset Model. I think it is pretty clear. Check
out the acts_as_attachment tutorial for spefic info on the various
sizes.

http://weblog.techno-weenie.net/articles/acts_as_attachment/thumbnailing

Keith B.
[email protected]
Tel: +49-7731-7983830

Restart the server and make sure rails itself is up to date (edge or
1.2 RC1). this may help. Or not…

Keith B.
[email protected]

On Nov 25, 2006, at 7:12 PM, Jonathan Métillon wrote:
svn magic :slight_smile:

$ svn up /vendor/extensions/assets/lib/asset_tags.rb
U asset_tags.rb
Updated to revision 20.

You say I can now use <r:thumbnail id=“13” /> ?? Kwel! I love that.
But I can’t test it, my radiant-mental is broken :frowning:

$ rake db:migrate:extensions
(in /home/john/web/radiant-mental)
rake aborted!
uninitialized constant RADIANT_ROOT
/home/john/web/radiant-mental/Rakefile:10
(See full trace by running task with --trace)

And when I try to read an article:

ArgumentError in SiteController#show_page

vendor/rails/activesupport/lib/active_support/dependencies.rb:399:in
`to_constant_name’: Anonymous modules have no name to be referenced by

svn magic :slight_smile:

$ svn up /vendor/extensions/assets/lib/asset_tags.rb
U asset_tags.rb
Updated to revision 20.

You say I can now use <r:thumbnail id=“13” /> ?? Kwel! I love that.
But I can’t test it, my radiant-mental is broken :frowning:

$ rake db:migrate:extensions
(in /home/john/web/radiant-mental)
rake aborted!
uninitialized constant RADIANT_ROOT
/home/john/web/radiant-mental/Rakefile:10
(See full trace by running task with --trace)

And when I try to read an article:

ArgumentError in SiteController#show_page

vendor/rails/activesupport/lib/active_support/dependencies.rb:399:in
`to_constant_name’: Anonymous modules have no name to be referenced by

RAILS_ROOT: script/…/config/…
Application Trace | Framework Trace | Full Trace

vendor/rails/activerecord/lib/active_record/base.rb:1363:in
compute_type' vendor/rails/activesupport/lib/active_support/dependencies.rb:211:inqualified_name_for’
vendor/rails/activesupport/lib/active_support/dependencies.rb:470:in
const_missing' (eval):1:incompute_type’
app/models/page.rb:146:in find_by_url' app/models/page.rb:160:infind_by_url’
app/controllers/site_controller.rb:29:in find_page' app/controllers/site_controller.rb:34:inshow_uncached_page’
app/controllers/site_controller.rb:22:in `show_page’

vendor/rails/activerecord/lib/active_record/base.rb:1363:in
compute_type' vendor/rails/activesupport/lib/active_support/dependencies.rb:211:inqualified_name_for’
vendor/rails/activesupport/lib/active_support/dependencies.rb:470:in
const_missing' vendor/rails/activerecord/lib/active_record/base.rb:1066:ininstantiate_without_callbacks’
vendor/rails/activerecord/lib/active_record/callbacks.rb:204:in
instantiate' vendor/rails/activerecord/lib/active_record/base.rb:424:infind_by_sql’
vendor/rails/activerecord/lib/active_record/base.rb:424:in find_by_sql' vendor/rails/activerecord/lib/active_record/base.rb:994:infind_every’
vendor/rails/activerecord/lib/active_record/base.rb:415:in find' vendor/rails/activerecord/lib/active_record/associations/has_many_association.rb:91:infind’
vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:159:in
find_target' vendor/rails/activerecord/lib/active_record/associations/has_many_association.rb:123:inload_target’
vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:122:in
method_missing' vendor/rails/activerecord/lib/active_record/associations/has_many_association.rb:98:inmethod_missing’
vendor/rails/actionpack/lib/action_controller/base.rb:1068:in
perform_action_without_filters' vendor/rails/actionpack/lib/action_controller/filters.rb:635:incall_filter’
vendor/rails/actionpack/lib/action_controller/filters.rb:641:in
call_filter' vendor/rails/actionpack/lib/action_controller/filters.rb:438:incall’
vendor/rails/actionpack/lib/action_controller/filters.rb:640:in
call_filter' vendor/rails/actionpack/lib/action_controller/filters.rb:641:incall_filter’
vendor/rails/actionpack/lib/action_controller/filters.rb:438:in call' vendor/rails/actionpack/lib/action_controller/filters.rb:640:incall_filter’
vendor/rails/actionpack/lib/action_controller/filters.rb:622:in
perform_action_without_benchmark' vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:inperform_action_without_rescue’
/usr/lib/ruby/1.8/benchmark.rb:293:in measure' vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:inperform_action_without_rescue’
vendor/rails/actionpack/lib/action_controller/rescue.rb:81:in
perform_action' vendor/rails/actionpack/lib/action_controller/base.rb:427:inprocess_without_filters’
vendor/rails/actionpack/lib/action_controller/filters.rb:627:in
process_without_session_management_support' vendor/rails/actionpack/lib/action_controller/session_management.rb:114:inprocess’
vendor/rails/actionpack/lib/action_controller/base.rb:330:in process' vendor/rails/railties/lib/dispatcher.rb:41:indispatch’
vendor/rails/railties/lib/webrick_server.rb:110:in handle_dispatch' vendor/rails/railties/lib/webrick_server.rb:76:inservice’
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in service' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:inrun’
/usr/lib/ruby/1.8/webrick/server.rb:173:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:162:instart_thread’
/usr/lib/ruby/1.8/webrick/server.rb:95:in start' /usr/lib/ruby/1.8/webrick/server.rb:92:instart’
/usr/lib/ruby/1.8/webrick/server.rb:23:in start' /usr/lib/ruby/1.8/webrick/server.rb:82:instart’
vendor/rails/railties/lib/webrick_server.rb:63:in dispatch' vendor/rails/railties/lib/commands/servers/webrick.rb:59 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
vendor/rails/activesupport/lib/active_support/dependencies.rb:489:in
require' vendor/rails/activesupport/lib/active_support/dependencies.rb:337:innew_constants_in’
vendor/rails/activesupport/lib/active_support/dependencies.rb:489:in
`require’
vendor/rails/railties/lib/commands/server.rb:39
script/server:3

vendor/rails/activerecord/lib/active_record/base.rb:1363:in
compute_type' vendor/rails/activesupport/lib/active_support/dependencies.rb:211:inqualified_name_for’
vendor/rails/activesupport/lib/active_support/dependencies.rb:470:in
const_missing' (eval):1:incompute_type’
vendor/rails/activerecord/lib/active_record/base.rb:1066:in
instantiate_without_callbacks' vendor/rails/activerecord/lib/active_record/callbacks.rb:204:ininstantiate’
vendor/rails/activerecord/lib/active_record/base.rb:424:in find_by_sql' vendor/rails/activerecord/lib/active_record/base.rb:424:infind_by_sql’
vendor/rails/activerecord/lib/active_record/base.rb:994:in find_every' vendor/rails/activerecord/lib/active_record/base.rb:415:infind’
vendor/rails/activerecord/lib/active_record/associations/has_many_association.rb:91:in
find' vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:159:infind_target’
vendor/rails/activerecord/lib/active_record/associations/has_many_association.rb:123:in
load_target' vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:122:inmethod_missing’
vendor/rails/activerecord/lib/active_record/associations/has_many_association.rb:98:in
method_missing' app/models/page.rb:146:infind_by_url’
app/models/page.rb:160:in find_by_url' app/controllers/site_controller.rb:29:infind_page’
app/controllers/site_controller.rb:34:in show_uncached_page' app/controllers/site_controller.rb:22:inshow_page’
vendor/rails/actionpack/lib/action_controller/base.rb:1068:in
perform_action_without_filters' vendor/rails/actionpack/lib/action_controller/filters.rb:635:incall_filter’
vendor/rails/actionpack/lib/action_controller/filters.rb:641:in
call_filter' vendor/rails/actionpack/lib/action_controller/filters.rb:438:incall’
vendor/rails/actionpack/lib/action_controller/filters.rb:640:in
call_filter' vendor/rails/actionpack/lib/action_controller/filters.rb:641:incall_filter’
vendor/rails/actionpack/lib/action_controller/filters.rb:438:in call' vendor/rails/actionpack/lib/action_controller/filters.rb:640:incall_filter’
vendor/rails/actionpack/lib/action_controller/filters.rb:622:in
perform_action_without_benchmark' vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:inperform_action_without_rescue’
/usr/lib/ruby/1.8/benchmark.rb:293:in measure' vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:inperform_action_without_rescue’
vendor/rails/actionpack/lib/action_controller/rescue.rb:81:in
perform_action' vendor/rails/actionpack/lib/action_controller/base.rb:427:inprocess_without_filters’
vendor/rails/actionpack/lib/action_controller/filters.rb:627:in
process_without_session_management_support' vendor/rails/actionpack/lib/action_controller/session_management.rb:114:inprocess’
vendor/rails/actionpack/lib/action_controller/base.rb:330:in process' vendor/rails/railties/lib/dispatcher.rb:41:indispatch’
vendor/rails/railties/lib/webrick_server.rb:110:in handle_dispatch' vendor/rails/railties/lib/webrick_server.rb:76:inservice’
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in service' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:inrun’
/usr/lib/ruby/1.8/webrick/server.rb:173:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:162:instart_thread’
/usr/lib/ruby/1.8/webrick/server.rb:95:in start' /usr/lib/ruby/1.8/webrick/server.rb:92:instart’
/usr/lib/ruby/1.8/webrick/server.rb:23:in start' /usr/lib/ruby/1.8/webrick/server.rb:82:instart’
vendor/rails/railties/lib/webrick_server.rb:63:in dispatch' vendor/rails/railties/lib/commands/servers/webrick.rb:59 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
vendor/rails/activesupport/lib/active_support/dependencies.rb:489:in
require' vendor/rails/activesupport/lib/active_support/dependencies.rb:337:innew_constants_in’
vendor/rails/activesupport/lib/active_support/dependencies.rb:489:in
`require’
vendor/rails/railties/lib/commands/server.rb:39
script/server:3

Request

Parameters: {“url”=>[“blog”]}

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs