Canvas developers help is needed: Cavas-Rails3

57 views
Skip to first unread message

juan....@iactiveit.com

unread,
Jun 3, 2013, 6:22:58 AM6/3/13
to canvas-l...@googlegroups.com
Hi everybody (specially Canvas devel Team),

I am attempting to setup Rails3 for my development. After achieving to run succesfully the server, I have multiple odd issues I am not able to fix whenever I run the app. 

I'm sure I am forgetting to setup something and that is my fault, so I need somebody to help to figure out this:

* Example (access to http://localhost:3000)
 -ActiveRecord::ConnectionNotEstablished
User#visible_stream_item_instances
app/models/user.rb, line 1702

The last error is only an example and it ocurrs in distinct ways in all the pages that are using code like the next:

self.shard.activate do
      Shackles.activate(:slave) do

I have no idea this code is for, so I am very lost to fix this.

Thanks in advance.

Juan

Jean Michel

unread,
Jun 3, 2013, 7:45:44 AM6/3/13
to canvas-l...@googlegroups.com
Well,  I have managed to progress a little:

I have (temporary) patched shackles.rb passing always :@connection_pools as variable instead of :@class_to_pool:
ActiveRecord::Base.connection_handler.instance_variable_get(variable) 

Now the error appears at User.recent_stream_items in line:
si.data.write_attribute(:unread, sii.unread?)

New error is:

Attempt to call private method

I have checked the method write_attribute is private in Rails http://apidock.com/rails/ActiveRecord/Base/write_attribute 

So... I don't know anything as Socrates should say

Cody Cutrer

unread,
Jun 3, 2013, 2:52:49 PM6/3/13
to canvas-l...@googlegroups.com
Juan,

Instructure has a goal to upgrade to Rails 3 by the end of the year. There are many known issues with Canvas under Rails 3. I would suspect the Shackles one is cause we are targeting Rails 3.2, so when writing new code compatible with Rails 2/3, we ignore 3.0 and 3.1 (and you're probably trying to run with 3.0).

Cody Cutrer
Software Engineer
Instructure


--
 
---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages