Skip to content

Questions regarding current validity of code #73

@rjhats

Description

@rjhats

Hello,

I am part of a group doing a study on CS education and we are planning to use pythy as a part of our research. I've set up pythy on a Mac box, but I've encountered some problems with the web environment.
For example, when setting up the server from the webclient, I encountered an error from '_navbar.html.haml'. Specifically, line 36:

  • if current_user.course_offerings.any?

With no courses, the result was null, but that was returned as a valid entry for .any causing the statement to evaluate as true and produce an error regarding the string form of null. This was fixed by changing it to .present instead of .any.

I've also encountered errors with creating assignments, as all of the dates asre sent to the server as NULL. In addition to that, the UI does not allow users with the permission to create classes the ability to create classes as they can't access the menu to create them.

Have there been any changes to the code that have not been pushed to the repository? Is the code outdated for Ruby's(or any other languages) current API? Or is the mac not fully supported for the pythy environment and is causing the errors?

For completions sake, here is my current gem list in case the problem is with one of the dependencies that is being used:

actionmailer (4.0.0)
actionpack (4.0.0)
activemodel (4.0.0)
activerecord (4.0.0)
activerecord-deprecated_finders (1.0.4)
activesupport (4.2.4, 4.0.0)
annotate (2.6.10)
arel (4.0.2)
awesome_print (1.6.1)
bcrypt (3.1.10)
bcrypt-ruby (3.1.5)
bigdecimal (1.2.6)
builder (3.1.4)
bundler (1.10.6)
bundler-unload (1.0.2)
cancan (1.6.9)
capistrano (2.15.6)
capybara (2.1.0)
carrierwave (0.10.0)
celluloid (0.15.2)
childprocess (0.5.6)
choice (0.2.0)
codemirror-rails (5.6)
coffee-rails (4.0.1)
coffee-script (2.4.1)
coffee-script-source (1.4.0)
commonjs (0.2.7)
connection_pool (2.2.0)
daemon (1.2.0)
delocalize (0.4.0)
devise (3.0.0.rc)
diff-lcs (1.2.5)
erubis (2.7.0)
execjs (2.6.0)
executable-hooks (1.3.2)
factory_girl (4.2.0)
factory_girl_rails (4.2.1)
faraday (0.9.1)
fastercsv (1.5.5)
ffi (1.9.10)
font-awesome-rails (4.4.0.0)
gem-wrappers (1.2.7)
git (1.2.9.1)
gravtastic (3.2.6)
haml (4.0.7)
hashie (3.4.2)
highcharts-rails (3.0.10)
highline (1.7.5)
hike (1.2.3)
i18n (0.7.0)
io-console (0.4.3)
jquery-fileupload-rails (0.4.5)
jquery-rails (3.1.4)
js-routes (1.1.2)
json (1.8.3, 1.8.1)
juggernaut (2.1.1)
jwt (1.5.1)
kaminari (0.16.3)
less (2.3.3)
less-rails (2.3.3)
libv8 (3.16.14.11 x86_64-darwin-14)
mail (2.5.4)
mime-types (1.25.1)
mini_magick (4.3.3)
mini_portile (0.6.2)
minitest (5.8.0, 4.7.5)
multi_json (1.11.2)
multi_xml (0.5.5)
multipart-post (2.0.0)
mysql2 (0.3.15)
net-scp (1.2.1)
net-sftp (2.1.2)
net-ssh (2.9.2)
net-ssh-gateway (1.2.0)
nokogiri (1.6.6.2)
oauth2 (1.0.0)
omniauth (1.2.2)
omniauth-facebook (2.0.1)
omniauth-oauth2 (1.3.1)
orm_adapter (0.5.0)
polyglot (0.3.5)
protected_attributes (1.0.3)
psych (2.0.8)
puma (2.13.4)
quiet_assets (1.1.0)
rabl (0.11.6)
rack (1.5.5)
rack-protection (1.5.3)
rack-test (0.6.3)
rails (4.0.0)
rails-erd (1.4.2)
railties (4.0.0)
rake (10.4.2)
rdoc (4.2.0)
redcarpet (3.3.2)
redis (3.2.1)
redis-namespace (1.5.2)
ref (2.0.0)
remotipart (1.2.1)
rspec-core (2.13.1)
rspec-expectations (2.13.0)
rspec-mocks (2.13.1)
rspec-rails (2.13.1)
ruby-graphviz (1.2.2)
rubygems-bundler (1.4.4)
rubyzip (0.9.9)
rvm (1.11.3.9)
sass (3.2.19)
sass-rails (4.0.5)
selenium-webdriver (2.35.1)
shoulda-matchers (2.8.0)
sidekiq (2.17.8)
sidekiq-failures (0.4.5)
simplecov (0.7.1)
simplecov-html (0.7.1)
sinatra (1.4.6)
slim (3.0.6)
sprockets (2.12.4)
sprockets-rails (2.0.1)
temple (0.7.6)
therubyracer (0.12.2)
thor (0.19.1)
thread_safe (0.3.5)
tilt (1.4.1)
timeliness (0.3.7)
timers (1.1.0)
treetop (1.4.15)
tzinfo (1.2.2, 0.3.44)
uglifier (2.7.2)
uuidtools (2.1.5)
validates_timeliness (3.0.14)
warden (1.2.3)
websocket (1.0.7)
xpath (2.0.0)

The 'twitter_bootstrap_form_for' gem was downloaded from the main branch as the link set in the Gemfile( '[email protected]:elementar/delocalize.git') was not able to be accessed

Thank you for any assistance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions