Hi,
I am trying to setup RoR on my test developer node, and I have some
difficulties when I created my new application. I noticed that the “script”
directory is not created, which it does not allow me to start hosting the
web page. I installed the ExecJS, but the ruby still not finding the
Excuse me I am a total beginer, but I want to learn programming in RoR. I
have linux Ubuntu 14.04. How I can install it? Is there somewhere step by
step instruction? Thanks.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To unsubscribe
You can start with installing ruby . http://rvm.io/
On Mon, Oct 6, 2014 at 3:49 PM, Brano rtw.k...@gmail.com wrote:
Excuse me I am a total beginer, but I want to learn programming in RoR. I
have linux Ubuntu 14.04. How I can install it? Is there somewhere step by
step instruction? Thanks.
This is my code for my index.html.erb scaffold
as you can see the if else stops a user to show, edit or destroy the
entries. However, they can create a new Rota entry by clicking New
Rotum. I can get rid of the admin part in Show, edit, destroy and
everyone will be able to do everything. But I
Hi Juan,
use this :-
-gem install therubyracer
-bundle install
-add gem 'therubyracer' line in Gemfile which is located inside the
project
-rails server
WEBrick Server should start.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To
Hello.
I thought of adding a method in ActiveSupport that would be able to
truncate custom precision amounts from a `DateTime` object.
For example:
DateTime.now.truncate_precision(sec: 10) # = a new DateTime object
minus the specified precision
I've needed this in a feature of mine and
On 6 October 2014 11:19, Brano rtw.k...@gmail.com wrote:
Excuse me I am a total beginer, but I want to learn programming in RoR. I
have linux Ubuntu 14.04. How I can install it? Is there somewhere step by
step instruction? Thanks.
I recommend using rvm http://rvm.io, all you need to do is, in
On 6 October 2014 11:36, Puneet Agarwal puneet.241994.agar...@gmail.com wrote:
Hi Juan,
use this :-
-gem install therubyracer
-bundle install
-add gem 'therubyracer' line in Gemfile which is located inside the
project
-rails server
bundle install needs to be after adding therubyracer to
Hey
I think i missed one line . Actually i stated 2 different ways to resolve
the problem ,if you add in the gemfile then simply bundle install will do
the work or you can manually install and add it to the gemfile. U can
choose any of the way . Better will be you add it in the gemfile and
You can extend the class yourself:
DateTime.class_eval do
define_method(:truncate_precision) { |amount|
puts amount
}
end
= #Proc:0x001fa649a0@(irb):8 (lambda)
DateTime.now.truncate_precision(sec: 10)
{:sec=10}
= nil
On Monday, October 6, 2014 8:17:58 AM UTC-4, powi wrote:
Hello.
Of course I can. I wanted to know if this seems useful to other people
using Rails so I can start to work on this feature.
On Monday, 6 October 2014 16:45:21 UTC+3, jsnark wrote:
You can extend the class yourself:
DateTime.class_eval do
define_method(:truncate_precision) { |amount|
On 6 October 2014 14:44, Puneet Agarwal puneet.241994.agar...@gmail.com wrote:
Hey
I think i missed one line . Actually i stated 2 different ways to resolve
the problem ,if you add in the gemfile then simply bundle install will do
the work or you can manually install and add it to the gemfile.
Agis A. wrote in post #1159152:
Of course I can. I wanted to know if this seems useful to other people
using Rails so I can start to work on this feature.
This doesn't feel to me like the sort of feature that warrants inclusion
in ActiveSupport. There are a multitude of possible functions
Hi,
To be specific it has to be included in gemfile and then running bundle
install will download and install the updated gem. Then javascript runtime
error should go away. If you want any further clarifications let us know.
Thanks.
On Monday, 6 October 2014 19:24:44 UTC+5:30, Colin Law
As discussed last week, generally Rails scaffolding is not commonly used.
Database migrations are commonly used, but it is unclear to me what you are
trying to do.
Are you attaching a Rails app to an existing database? (Like a database schema
that is already built and works off some other
What does the controller look like?
Try googling for devise with cancan
On Oct 6, 2014, at 6:53 AM, Mohammed Rashid li...@ruby-forum.com wrote:
This is my code for my index.html.erb scaffold
as you can see the if else stops a user to show, edit or destroy the
entries. However, they can
class RotaController ApplicationController
before_filter :authenticate_user!, except: ( :Welcome)
before_action :set_rotum, only: [:show, :edit, :update, :destroy]
# GET /rota
# GET /rota.json
def index
@rota = Rotum.all
@is_admin = current_user.try(:admin?)
end
#
I will take a look at it, thanks for the advice
--
Posted via http://www.ruby-forum.com/.
--
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
Jason Fb wrote in post #1159167:
What does the controller look like?
class RotaController ApplicationController
before_filter :authenticate_user!, except: ( :Welcome)
before_action :set_rotum, only: [:show, :edit, :update, :destroy]
# GET /rota
# GET /rota.json
def index
Thanks Jason! I ended up using net-ldap and just querying for
userAccountControl and comparing against this list:
http://www.netvision.com/ad_useraccountcontrol.php
def new_ldap_connection
Net::LDAP.new(
host: ENV['ad_host'],
port: ENV['ad_port'],
encryption: :simple_tls,
The before_action :set_rotum is where you want to put the access control.
Despite what I said earlier, you don't actually need cancan, but as an
alternative to this implementation you can use something like cancan for access
control.
In your example, you would do something like this
WealthEngine is looking for an API Support Engineer and Developer
Evangelist to work with our API developer and partner community. You
will be both working with developers using our API in addition to
working with our internal development team to ensure the quality and
capabilities of our API are
On Sun, Oct 5, 2014 at 9:14 PM, Juan Torres cybersys...@gmail.com wrote:
I am trying to setup RoR on my test developer node, and I have some
difficulties when I created my new application. I noticed that the “script”
directory is not created, which it does not allow me to start hosting the
So I'm creating a tv trivia game app, and when a user completes their
quiz, I need to update certain aspects of the user (level/xp, also
saving some of their answers to the database).
However, I'm using devise for authentication, and I'm not sure how to
access and update the current user when I'm
Joseph,
Whats the association between a quiz and a user. If they are related , then
you can write a callback in your quiz model
after_create :increase_user_xp
or
after_update :increase_user_xp
def increase_user_xp
self.user.update(:xp = 50)
end
On Tue, Oct 7, 2014 at 6:44 AM, Joseph Wilks
25 matches
Mail list logo