Re: [Rails] Re: Refactor Link Table relationsip

2014-07-12 Thread Colin Law
On 11 July 2014 23:18, Jan Yo li...@ruby-forum.com wrote: Colin Law wrote in post #1152183: On 11 July 2014 22:26, Jan Yo li...@ruby-forum.com wrote: Here's the active record relation: customer has many memberships membership_role belongs to membership and role (link table) Is there a

Re: [Rails] trying to figure out an installation bug

2014-07-12 Thread Colin Law
On 12 July 2014 06:02, Trevor Man li...@ruby-forum.com wrote: Hi. I am trying to figure out how to install and run Ruby on Rails from the ruby-lang site. Ruby on Rails on Windows can be problematic (it is much better to use Linux (eg ubuntu) or Mac). But if you absolutely have to use win then

[Rails] cannot see my own layout (hierapolis gem)

2014-07-12 Thread Roelof Wobben
Hello, I did a whole ruby on rails install. After that I wanted to use the hierapolis gem and did all the steps in the README. But when I do rails s , I still see the standard welcome page. What must I do to make this work. Roelof -- You received this message because you are subscribed to

Re: [Rails] cannot see my own layout (hierapolis gem)

2014-07-12 Thread Walter Lee Davis
In the original install, did you use Rails 4.1, or was it a lower version? If lower, did you delete the index.html file from your /public folder? Walter On Jul 12, 2014, at 7:44 AM, Roelof Wobben wrote: Hello, I did a whole ruby on rails install. After that I wanted to use the hierapolis

Re: [Rails] cannot see my own layout (hierapolis gem)

2014-07-12 Thread Roelof Wobben
Hoi, I use the 4.1 ruby. Roelof Op zaterdag 12 juli 2014 14:24:49 UTC+2 schreef Walter Lee Davis: In the original install, did you use Rails 4.1, or was it a lower version? If lower, did you delete the index.html file from your /public folder? Walter On Jul 12, 2014, at 7:44 AM,

Re: [Rails] cannot see my own layout (hierapolis gem)

2014-07-12 Thread Walter Lee Davis
Then did you update your routes.rb file to reflect where :root should be? Walter On Jul 12, 2014, at 10:38 AM, Roelof Wobben wrote: Hoi, I use the 4.1 ruby. Roelof Op zaterdag 12 juli 2014 14:24:49 UTC+2 schreef Walter Lee Davis: In the original install, did you use Rails 4.1, or

Re: [Rails] cannot see my own layout (hierapolis gem)

2014-07-12 Thread Roelof Wobben
Nope, I only figured out that a application.html.erb is living on /apps/views/layouts but can I send root to a static page ? Roelof Op zaterdag 12 juli 2014 16:53:51 UTC+2 schreef Walter Lee Davis: Then did you update your routes.rb file to reflect where :root should be? Walter On

[Rails] Re: Tricky Inheritence

2014-07-12 Thread Matt Jones
On Friday, 11 July 2014 13:36:32 UTC-5, Ruby-Forum.com User wrote: I have created few models which are shown below. Base models are TransactionType and TransactionItem ExpenseType and IncomeType derives from TransactionType. Expense and Income derives from TransactionItem. class

[Rails] Re: Book/Tutorial on Rails Internals?

2014-07-12 Thread Alain Moune
Are you already done learning ruby first ? -- 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

Re: [Rails] cannot see my own layout (hierapolis gem)

2014-07-12 Thread Walter Lee Davis
If you put a static index.html in the public folder, that will become your site root, or you can use a controller and a route to send a different file, like this: # static_pages_controller.rb class StaticPagesController ApplicationController # empty end

[Rails] Bootstrap progress bar

2014-07-12 Thread Dave Castellano
Anyone know how to set the progress bar value in the controller and pass it to the view? I tried the following: Controller/show: @progress_bar_num = 25% View/show: div class=progress div class=progress-bar role=progressbar aria-valuenow=%= @p_bar_number % aria-valuemin=0 aria-valuemax=100

[Rails] Re: Bootstrap progress bar

2014-07-12 Thread Dave Castellano
OK, got it. Have to set the width of .bar through javascript / jQuery. -- 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