Thank you.
If I move my thor task to lib/thor directory, how can I use it? Also by
rails runner? Then there has the same trouble.
Your second method is good for me. Now I am using Rails 4, I tried to make
a thor script file under bin/ likes bin/thor.
But how to run the file under lib/tasks/my_c
the lib/tasks directory is for Rake tasks, and anything in it that ends in
.rake or .rb will be loaded up with the environment.
i suggest putting them in lib/thor/, or if you make them standalone thor
scripts you can put them in scripts/
On Thu, Sep 10, 2015 at 4:52 AM, wrote:
> Thor is a too
Hi,
you may use "rake db:schema:dump" to get the current schema out of your SQL
Server DB.
If there are no migrations Rails will use the schema.rb file to setup your
test database.
BUT: you can not use the Sql Server schema dump for a sqlite db, as it may
contain
special Sql Server datatypes (v
Being from India, this a question to Ruby on rails experts in India... i
have some doubts regarding risk based testing? how to perform it?
--
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 unsu
Hi,
I have used cucumber/RSpec before while using MySQL & SQlite but my new
project application is so gigantic & doesn't have any unit-tests with in
the app. So I want to write unit/functional and integration tests to it
but I dont have a schema for the data since its backed by MSSQL db.
1. How d
Hello
1. Get the week number for the date passed and current date.
2. Now check if date passed week number < current date week
then it is passed
else if both same then
it is current week
else if greater then
it is future week
thanks
On T
Hi,
I need to know if a week has passed or if it's next week
Based on a rang
For example:
31/08..06/09 past
07/09..13/09 current
14/09..20/09 future
Thanks.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group
Hey there,
I wanted to set the asset host in my Rails project to point to my CDN. The
CDN is pointing directly to the assets directory so that I didn't have to
deal with duplicative content being found via crawlers if they crawl my
CDN's domain and I had pointed it to the root of my site. The p
Thor is a toolkit for building powerful command-line interfaces.
It always been used for single command line. If I want to use it in a rails
project, for example:
lib/tasks/my_cli.rb
require "thor"
class MyCLI < Thor
desc "hello NAME", "say hello to NAME"
def hello(name)
Hellow.
I need to create and update related models i.e. Chat---Chatusers---User.
I have already each-creating in model Chat
def set_members
@chat_users.each do |chat_user|
chatusers.build(user_id: chat_user, num_unread_msgs: 0)
end
end
At first i think this is not a nice solution.
At sec
10 matches
Mail list logo