Rails4 Branch

101 views
Skip to first unread message

Bruno Bornsztein

unread,
Dec 1, 2013, 6:24:58 PM12/1/13
to communi...@googlegroups.com
Hi all,
Just wanted to let you know we now have a Rails4  (Ruby 2.0) compatible branch with passing tests:


I'm not super-confident that this branch is without bugs yet, since I'm not using it on any of my apps. I'd appreciate some help getting it tested a little better.

Thanks,
Bruno

shyam

unread,
Dec 1, 2013, 11:27:44 PM12/1/13
to communi...@googlegroups.com
Thanks and
Nice to see new update.




--
You received this message because you are subscribed to the Google Groups "CommunityEngine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to communityengi...@googlegroups.com.
To post to this group, send email to communi...@googlegroups.com.
Visit this group at http://groups.google.com/group/communityengine.
For more options, visit https://groups.google.com/groups/opt_out.



--
Thanks & Regards,
- Shyam

jsh

unread,
Mar 7, 2014, 5:04:34 PM3/7/14
to communi...@googlegroups.com
looks like rails4 branch is behind master a few commits. 
any plan to merge bug fixes on master back to rails4 branch?

I am considering using Rails 4 to start a new project. (looks like the community is ready to move on Rails 4?)
also like rails4 branch is using Twitter Bootstrap..

Bruno Bornsztein

unread,
Mar 10, 2014, 9:25:58 AM3/10/14
to communi...@googlegroups.com
Yeah, plans are to merge bugfixes from master into rails4 (there aren't a ton, but they need to be merged in). I'm still not using rails4 in production anywhere (is anyone else?).


--
You received this message because you are subscribed to the Google Groups "CommunityEngine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to communityengi...@googlegroups.com.
To post to this group, send email to communi...@googlegroups.com.
Visit this group at http://groups.google.com/group/communityengine.
For more options, visit https://groups.google.com/d/optout.

Dan Coutu

unread,
Mar 10, 2014, 9:31:28 AM3/10/14
to communi...@googlegroups.com
I have plans to do so within the next 3 months. I'll also be fully integrating a Spree shop with it.

Dan

Jeremias Santos

unread,
Mar 10, 2014, 10:05:20 PM3/10/14
to communi...@googlegroups.com
I'm still grasping ruby and rails, but must use this design looks pretty cool, but I'm somewhat difficult to run and if you can help thank algume now. 

I'm trying to use the rails4, but downloaded the branch and after installing the dependencies, I tried to run and I get the following error:

Usage:
  rails new APP_PATH [options]

Options:
  -r, [--ruby=PATH]              # Path to the Ruby binary of your choice
                                 # Default: /home/jeremias/.rvm/rubies/ruby-2.1.0/bin/ruby
  -m, [--template=TEMPLATE]      # Path to some application template (can be a filesystem path or URL)
      [--skip-gemfile]           # Don't create a Gemfile
  -B, [--skip-bundle]            # Don't run bundle install
  -G, [--skip-git]               # Skip .gitignore file
      [--skip-keeps]             # Skip source control .keep files
  -O, [--skip-active-record]     # Skip Active Record files
  -S, [--skip-sprockets]         # Skip Sprockets files
  -d, [--database=DATABASE]      # Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc)
                                 # Default: sqlite3
  -j, [--javascript=JAVASCRIPT]  # Preconfigure for selected JavaScript library
                                 # Default: jquery
  -J, [--skip-javascript]        # Skip JavaScript files
      [--dev]                    # Setup the application with Gemfile pointing to your Rails checkout
      [--edge]                   # Setup the application with Gemfile pointing to Rails repository
  -T, [--skip-test-unit]         # Skip Test::Unit files
      [--rc=RC]                  # Path to file containing extra configuration options for rails command
      [--no-rc]                  # Skip loading of extra configuration options from .railsrc file

Runtime options:
  -f, [--force]    # Overwrite files that already exist
  -p, [--pretend]  # Run but do not make any changes
  -q, [--quiet]    # Suppress status output
  -s, [--skip]     # Skip files that already exist

Rails options:
  -h, [--help]     # Show this help message and quit
  -v, [--version]  # Show Rails version number and quit

Description:
    The 'rails new' command creates a new Rails application with a default
    directory structure and configuration at the path you specify.

    You can specify extra command-line arguments to be used every time
    'rails new' runs in the .railsrc configuration file in your home directory.

    Note that the arguments specified in the .railsrc file don't affect the
    defaults values shown above in this help message.

Example:
    rails new ~/Code/Ruby/weblog

    This generates a skeletal Rails installation in ~/Code/Ruby/weblog.
    See the README in the newly created application to get going.
jeremias@jeremiasNot:/opt/WORK/WorkRubyOnRails/communityengine$ git pull
Cannot pull with rebase: You have unstaged changes.
Please commit or stash them.

jsh

unread,
Mar 11, 2014, 12:44:29 AM3/11/14
to communi...@googlegroups.com
You need to create a new app first (rails new)
then follow the installation instruction.

CE is supposed to be used as an Engine.

Jeremias Santos

unread,
Mar 11, 2014, 9:57:31 PM3/11/14
to communi...@googlegroups.com
Okay do so and return any error posting. 

Thank you for listening.





On Sunday, December 1, 2013 8:24:58 PM UTC-3, Bruno wrote:

Jeremias Santos

unread,
Mar 11, 2014, 10:45:19 PM3/11/14
to communi...@googlegroups.com
I created a new application with the rails and did the installation steps, but when I try to run bin / rake db: migrate I get the following error:

user@userNot:/opt/WORK/WorkRubyOnRails/CommunityEngine$ bin/rake db:migrate
rake aborted!
cannot load such file -- /opt/WORK/WorkRubyOnRails/CommunityEngine/config/application_config.rb
/home/user/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `require'
/home/user/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `block in require'
/home/user/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:214:in `load_dependency'
/home/user/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `require'
/home/user/.rvm/gems/ruby-2.0.0-p353/bundler/gems/communityengine-624746ee915c/lib/community_engine/engine.rb:10:in `block in <class:Engine>'
/home/user/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/initializable.rb:30:in `instance_exec'
/home/user/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/initializable.rb:30:in `run'
/home/user/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/initializable.rb:55:in `block in run_initializers'
/home/user/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/initializable.rb:44:in `each'
/home/user/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/initializable.rb:44:in `tsort_each_child'
/home/user/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/initializable.rb:44:in `each'
/home/user/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/initializable.rb:44:in `tsort_each_child'
/home/user/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/initializable.rb:44:in `each'
/home/user/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/initializable.rb:44:in `tsort_each_child'
/home/user/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/initializable.rb:54:in `run_initializers'
/home/user/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/application.rb:215:in `initialize!'
/home/user/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/railtie/configurable.rb:30:in `method_missing'
/opt/WORK/WorkRubyOnRails/CommunityEngine/config/environment.rb:5:in `<top (required)>'
/home/user/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `require'
/home/user/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `block in require'
/home/user/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:214:in `load_dependency'
/home/user/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `require'
/home/user/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/application.rb:189:in `require_environment!'
/home/user/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/application.rb:250:in `block in run_tasks_blocks'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)


What am I doing wrong?

Interestingly, the bundle install - without binstubs runs Normal presents errors.









On Sunday, December 1, 2013 8:24:58 PM UTC-3, Bruno wrote:

Jeremias Santos

unread,
Mar 12, 2014, 7:12:34 AM3/12/14
to communi...@googlegroups.com
The Archive application_config.rb does not really exist because the folder is in the application.rb not know if the problem is in the installation or application_config.rb refers to earlier versions of rails.









On Sunday, December 1, 2013 8:24:58 PM UTC-3, Bruno wrote:

Jeremias Santos

unread,
Mar 12, 2014, 11:55:52 AM3/12/14
to communi...@googlegroups.com
Able to resolve. The problem was that he had not seen the next step to create the file. Thank you.

Add a file called application_config.rb to your config directory. In it put (at least):



On Sunday, December 1, 2013 8:24:58 PM UTC-3, Bruno wrote:
Reply all
Reply to author
Forward
0 new messages