Hello all,
What is significance of :: in ActiveRecord::Base.
What is difference between ::String.new and String.new
Thank you,
Praveen
--
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
Good question!
Using :: you have access to the class inside the module. Module can nest
another modules and so on. :: its a namespace resolution operator.
Call ::String.new inside some module back you to top-level namespace
(outside the module)
Here is examples
class String
def initialize
::String means explicit root namespace.
So if you have something like
module MyNamespace
class String
...
end
end
MyNamespace::String will be your own class, while ::String will still be
the original string class defined by Ruby. If you just type String, it'll
find the closest
Hi ,
I wan to customize fedena for multischool.Fedena buiilt with Old ROR.
Please assist me for the same.
Regards
Sunil
--
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,
Please, send me your customize requirement to jainvikram...@gmail.com
On Tue, Jul 15, 2014 at 10:57 AM, Sunil Kumar snlkumar...@gmail.com wrote:
Hi ,
I wan to customize fedena for multischool.Fedena buiilt with Old ROR.
Please assist me for the same.
Regards
Sunil
--
You received
In this case, it is pretty certain that ever file will contain UTF-8
characters, and in general, I think the cases are few where we can
assume input to be represented by 7-bit-ASCII.
What I do not know for sure is whether or not the file will have a BOM,
but I think Ruby can figure this out
I think that the relationships in my model are OK so far. In my concrete
case, an instance of A would be a so-called (domain-specific) user
dictionaries. An instance of B would be a dictionary entry (each
dictionary has many entries). A C would be a so called idiom
description, i.e.
Hello,
Can anyone provide guidance on whether or not there is an idiomatic
way to create a very small set (say, = 10 declarations) of dynamic CSS
with RoR?
Method 1: Embedding a `style` tag into the page (whether directly or
rendered from a partial) in application.html.erb. This implies that
On Jul 15, 2014, at 9:54 AM, Chris Tonkinson wrote:
Hello,
Can anyone provide guidance on whether or not there is an idiomatic
way to create a very small set (say, = 10 declarations) of dynamic CSS
with RoR?
Method 1: Embedding a `style` tag into the page (whether directly or
Thanks for the help everybody. I wasn't able to fix the file, but I
just ended up deleting the entire place file and will try to start over
and protect it under active admin again.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the
Is there a more compact way to do a nested each ?
value.each do |x|
x.data.each do |y|
puts 'x: ' + x + ' y: ' + y
end
end
That is can this be reduced to one or two lines?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google
I am attempting to recreate an old install of a machine that failed
recently. I originally setup the machine using the guide found on
Hivelogic (http://hivelogic.com/articles/ruby-rails-mongrel-mysql-osx).
Which would have reinstated all of my old environments (Ruby 1.8.6,
Rubygems 0.9.2 Rails
On Monday, 14 July 2014 15:49:51 UTC-4, Liz Huang wrote:
I don't see anything else though, let me copy the whole page:
LoadError in SamplesizeController#compute cannot load such file -- dl
Extracted source (around line *#14*):
121314151617
def compute
require
On Jul 15, 2014, at 12:19 PM, Jeff Lockyer li...@ruby-forum.com wrote:
Can anyone help me in getting Rails setup with Ruby 1.8.7 and RubyGems
1.3.6 is there a way to pass the version of Rails to the gem installer ?
gem install rails -v 1.3.6
--
Scott Ribe
scott_r...@elevated-dev.com
On Tue, Jul 15, 2014 at 11:19 AM, Jeff Lockyer li...@ruby-forum.com wrote:
I am attempting to recreate an old install of a machine that failed
recently.
This is *exactly* where you should be using rvm (http://rvm.io/).
You will save yourself a ton of pointless grief. Seriously.
--
Hassan
Thanks! I will check fiddle out and post if I have any questions. It can
call .dylib?
Liz
On Tuesday, July 15, 2014 2:46:35 PM UTC-4, Matt Jones wrote:
On Monday, 14 July 2014 15:49:51 UTC-4, Liz Huang wrote:
I don't see anything else though, let me copy the whole page:
LoadError
On 14 July 2014 23:35, Eric Saupe ericsa...@gmail.com wrote:
%= form_for @user do |f| %
div class=field
%= f.label :login_naam %:
%= f.text_field :login_naam, class: login, placeholder: login naam
%br /
/div
%= f.submit %
% end %
You'll want to let Rails take care of the
Gotcha. Is the file actually opened when the controller is entered? (That's
an honest question I'm interested in how that works coming as an upload
from a form) The way you've described, that I failed to understand the
first time, to me seems like the best way but I'd be interested to see what
So with this, could I confidently install Rails 1.1.6 and Ruby 1.8.6 ?
Because thus far, attempting to get these two in line is turning out to
be a real headache... :(
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
I have a position for a Ruby on Rails developer for a higher education
institute in the Chicagoland area. This is a 3-6 month contract-to-hire
position. The ideal candidate will need to have 2-3 years of RoR
Development experience. The candidate will also need to have experience
with MySQL
Hi everyone
I'm using devise for authentication. I have a User model and a Company
Profile model. The Company Profile model belongs to a User. But a User can
receive a request from other user to see its Company Profile info. Once the
request is accepted, the user can then see that profile.
this is the worst installation package I have ever encountered, I installed
using www.railsinstaller.org, I installed the VS2010 shell, when I try to
generate script for anew project I get this error
Starting Generate 'script\rails generate scaffold post title:string
body:text
On Tue, Jul 15, 2014 at 2:17 PM, Jeff Lockyer li...@ruby-forum.com wrote:
So with this, could I confidently install Rails 1.1.6 and Ruby 1.8.6 ?
Yes. I just did a test install of those on an MBA running Mavericks.
rvm install ruby-1.8.6
rvm use ruby-1.8.6
gem install rake -v '0.8.7' # just a
On Monday, 14 July 2014 16:30:03 UTC-4, Ruby-Forum.com User wrote:
Hi Matt,
Schema looks like this.
sqlite .schema transaction_items
CREATE TABLE transaction_items (id INTEGER PRIMARY KEY AUTOINCREMENT
NOT NULL, transaction_type_id integer, note varchar(255),
transaction_date
Jan Yo wrote in post #1152468:
Is there a more compact way to do a nested each ?
value.each do |x|
x.data.each do |y|
puts 'x: ' + x + ' y: ' + y
end
end
That is can this be reduced to one or two lines?
value.each { |x| x.data.each { |y| puts 'x: ' + x + ' y: ' + y } }
There,
25 matches
Mail list logo