Saturday, April 30, 2016
[Rails] How do I setup this odd join?
I have a Student table with some fields...
I need to join the student in two different ways...
1. The student has a home district
2. The student can be in one or more reporting districts
I understand the join table for the reporting districts, however is it
also possible to have a district_id in the student table as well which
is his/her home district?
Or do I have to do a has many through?
I would like to be able to do
student.district as well as student.reporting_districts or something
similar.
Sorry... Really new to rails and still trying to learn the proper
syntax...
John
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/fcb91a7c878e9245ca6e0a35e59de72f%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
Thursday, April 28, 2016
[Rails] Giving users the ability to reshare content
field on the model, but of course that's not a good approach. If I can
use only the object's ID, I think that would slim down the amount of
data being used. The old method is below, maybe you have a better
solution with AJAX.
Post model
has_many: reposts, class_name: "Post", foreign_key: "repost_id",
dependent: :destroy;
def repost
orig_post=Micropost.find(params[:id]);
if(orig_post)
Micropost.create(user_id:current_user.id,
content: orig_post.content,
repost_id:orig_post.id);
respond_to do |format|
format.js
end
end
end
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/35e3c1d54c6e2580526c5894bc7be440%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
Re: [Rails] Confusion over ERB delimiters in Rails form partial
> On 28 April 2016 at 16:28, gvim <gvimrc@gmail.com> wrote:
>
> That is almost correct. Lines with <% are evaluated but nothing is
> inserted into the page. Lines with <%= are evaluated and the returned
> value (string) is inserted into the page. Since form_for has to
> insert the form tag into the page then it has to be <%=
>
> Colin
>
Sorry, should have RTFM first :)
gvim
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5722377D.7010100%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Re: [Rails] Confusion over ERB delimiters in Rails form partial
> "Agile Web Development with Rails 5", p.76 lists a form partial which
> begins:
>
> <%= form_for(product) do |f| %>
> <% if product.errors.any? %>
> <div id="error_explanation">
> <h2><%= pluralize(product.errors.count, "error") %> prohibited this
> product from being saved:</h2>
>
> <ul>
> <% product.errors.full_messages.each do |message| %>
> <li><%= message %></li>
>
> It is correct but I'm confused about the first line as I understood that
> control structures begin with <% as in the 2nd line and that <%= is reserved
> for inserting values and calling formatting functions.
That is almost correct. Lines with <% are evaluated but nothing is
inserted into the page. Lines with <%= are evaluated and the returned
value (string) is inserted into the page. Since form_for has to
insert the form tag into the page then it has to be <%=
Colin
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLsvCAGN%3Dh%3DtELV9R%3DmYMhne_5T%3D_Yjatm%3Dw7v7hfQ8VuA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
[Rails] Confusion over ERB delimiters in Rails form partial
begins:
<%= form_for(product) do |f| %>
<% if product.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(product.errors.count, "error") %> prohibited
this product from being saved:</h2>
<ul>
<% product.errors.full_messages.each do |message| %>
<li><%= message %></li>
It is correct but I'm confused about the first line as I understood that
control structures begin with <% as in the 2nd line and that <%= is
reserved for inserting values and calling formatting functions.
gvim
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/57222C23.30000%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Re: [Rails] Major update to Rails Assets
On Apr 27, 2016, at 5:05 PM, liam@tenex.tech wrote:I'm a maintainer of the service too. Thanks for your feedback. The donations are processed by Stripe, so we don't actually receive your credit card information (just like with Paypal). If you want to confirm that, you can just inspect the page and see that it loads in an iframe, and that all that traffic goes to https://checkout.stripe.comBeing PCI-DSS compliant would be a huge hassle, so it's definitely a plus for us as well.
On Wednesday, April 27, 2016 at 1:24:16 PM UTC-4, Scott Eisenberg wrote:I'd donate if there was a paypal options. Not too keen on putting in my credit card to a random site, no matter how trustworthy I *think* you all might be.Nice looking pop-up box though.On Apr 27, 2016, at 11:57 AM, Josh Jordan <josh....@gmail.com> wrote:Hi all!Just wanted to announce a big update we made to Rails Assets https://rails-assets.orgFor those who haven't used it before, Rails Assets takes Bower components and packages them up as Ruby gems, to ease some of the pain of getting bower components working on Rails projects. No longer do you have to copy/paste javascript and CSS to your vendor directory, and then manage updating it yourself. You don't even need to learn bower! Just go to Rails Assets, type in the name of the bower component, and pull it in as a gem.We revamped the user experience so that it should be MUCH easier to find the components you're looking for and get them working in a Rails app. Here's some release notes:* Completely new search interface* Each component now has its own page* Very clear instructions on how to install a component* Dramatically improved interface for choosing a version other than the latest* Ability to link to component pages directly* Ability to link to search results directlyAs always, please hit us up with feedback!JoshPS: We're accepting donations at https://rails-assets.org now as well. If you find this useful, even a few dollars helps us keep it running!--
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 rubyonrails-ta...@googlegroups.com .
To post to this group, send email to rubyonra...@googlegroups.com .
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ .2d690fe1-7f78-4d81-bc34- d37c9782c926%40googlegroups. com
For more options, visit https://groups.google.com/d/optout .
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4cfaca5f-85e9-44b6-8cb2-39136afa3b04%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[Rails] Ajax editing of comments
commenting:
http://railscasts.com/episodes/154-polymorphic-association-revised
Comments are listed below the instance that they are associated with, I
have creating and deleting comments working with ajax, but I can't work
out how to enable editing with ajax? I have it working with HTML - but
I'd rather be able to do this from the same page the comment is on.
Maybe the way I have this set up (polymorphic commentable objects and
collection of comments on the page) doesn't lend itself to editing like
this? If this is the case I may just leave it as it is, but I'd rather
make this work if its possible.. I've spent a few days trying to get
this to work, but no dice, and I can't find any examples.
Can anyone point me to a decent tutorial or give me some tips as to how
I can achieve this?
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/732c4e9b0ac42616b234d3e9a6da4022%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
Wednesday, April 27, 2016
Re: [Rails] Major update to Rails Assets
On Wednesday, April 27, 2016 at 1:24:16 PM UTC-4, Scott Eisenberg wrote:
I'd donate if there was a paypal options. Not too keen on putting in my credit card to a random site, no matter how trustworthy I *think* you all might be.Nice looking pop-up box though.On Apr 27, 2016, at 11:57 AM, Josh Jordan <josh....@gmail.com> wrote:Hi all!Just wanted to announce a big update we made to Rails Assets https://rails-assets.orgFor those who haven't used it before, Rails Assets takes Bower components and packages them up as Ruby gems, to ease some of the pain of getting bower components working on Rails projects. No longer do you have to copy/paste javascript and CSS to your vendor directory, and then manage updating it yourself. You don't even need to learn bower! Just go to Rails Assets, type in the name of the bower component, and pull it in as a gem.We revamped the user experience so that it should be MUCH easier to find the components you're looking for and get them working in a Rails app. Here's some release notes:* Completely new search interface* Each component now has its own page* Very clear instructions on how to install a component* Dramatically improved interface for choosing a version other than the latest* Ability to link to component pages directly* Ability to link to search results directlyAs always, please hit us up with feedback!JoshPS: We're accepting donations at https://rails-assets.org now as well. If you find this useful, even a few dollars helps us keep it running!--
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 rubyonrails-ta...@googlegroups.com .
To post to this group, send email to rubyonra...@googlegroups.com .
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ .2d690fe1-7f78-4d81-bc34- d37c9782c926%40googlegroups. com
For more options, visit https://groups.google.com/d/optout .
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4cfaca5f-85e9-44b6-8cb2-39136afa3b04%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: [Rails] Major update to Rails Assets
On Apr 27, 2016, at 11:57 AM, Josh Jordan <josh.jordan@gmail.com> wrote:Hi all!Just wanted to announce a big update we made to Rails Assets https://rails-assets.orgFor those who haven't used it before, Rails Assets takes Bower components and packages them up as Ruby gems, to ease some of the pain of getting bower components working on Rails projects. No longer do you have to copy/paste javascript and CSS to your vendor directory, and then manage updating it yourself. You don't even need to learn bower! Just go to Rails Assets, type in the name of the bower component, and pull it in as a gem.We revamped the user experience so that it should be MUCH easier to find the components you're looking for and get them working in a Rails app. Here's some release notes:* Completely new search interface* Each component now has its own page* Very clear instructions on how to install a component* Dramatically improved interface for choosing a version other than the latest* Ability to link to component pages directly* Ability to link to search results directlyAs always, please hit us up with feedback!JoshPS: We're accepting donations at https://rails-assets.org now as well. If you find this useful, even a few dollars helps us keep it running!--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/2d690fe1-7f78-4d81-bc34-d37c9782c926%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[Rails] Major update to Rails Assets
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/2d690fe1-7f78-4d81-bc34-d37c9782c926%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[Rails] [ANN] active_record_doctor 1.1.0 Released
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAA6WWt-tPcTjTpSoGGPUaG536GyjU_eVFJj8WLTTaHKYamSj-g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Tuesday, April 26, 2016
[Rails] Re: Need help with creating a Sidekiq Job
These lines of code are working
orphans = SimpleHashtag::Hashtag.all.select {|h| h.hashtaggables.size ==
0}
orphans.map(&:destroy)
But, in order for the perform method to fire off. You need an argument
to go along with 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/69c939698f54fc1b8f6ba00e10b4f479%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
[Rails] Need help with creating a Sidekiq Job
hashtags that aren't being used anymore (destroyed posts) This job would
run once every month to clean out the database. I'm currently receiving
variable/method undefined for hashtaggable_ids. The code that I wrote is
below.
class RemoveHashtagOrphans < ActiveJob::Base
queue_as :default
def perform(hashtaggable_id)
hashtags = SimpleHashtag::Hashtag.find(hashtaggables:
hashtaggable_id)
orphans = hashtags.all.select {|h| h.hashtaggables.size == 0}
orphans.map(&:destroy)
end
end
#RemoveHashtagOrphans.new.perform(hashtaggable_id)
#RemoveHashtagOrphans.perform_at(1.month.from_now)
Original self.clean_orphan method below
def self.clean_orphans # From DB
# TODO Make this method call a single SQL query
orphans = self.all.select { |h| h.hashtaggables.size == 0 }
orphans.map(&:destroy)
end
I need to take the clean_orphan method and convert it into a sidekiq
job.
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/2d9d68b3eaeb329d4f36efa6034670f3%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
Re: [Rails] Re: Re: Re: warning: toplevel constant Configuration referenced by ActiveRecord::Base::Configuration
> Colin Law wrote in post #1183079:
>> On 26 April 2016 at 05:10, Naveed Alam <lists@ruby-forum.com> wrote:
>>> Yes I have a Configuration Model/Controler below are the links to
>>> controller, and model
>>
>> In that case your simplest solution may be to change the name of the
>> model.
>>
>> Colin
>
> If I change the model name, then I have to make a lot of changes in
> many other Controllers and where its been called
> and the migration too.
> so I get a lot of error messages.
A few global search and replace changes should do it. You don't need
to change the controller or table name if you don't want to. I assume
you have the source under a source control system such as git, and
that you have good automated test coverage, which will make sure you
catch everything.
Colin
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLttDn-WU6eL%2BKEqhJ2bgFLcw287NWfToCBh6wp29oaG-w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Re: [Rails] Want to write api of twitter to post tweet without any gem/library means with curl command
Thanks for your reply ,
Ii tried with net/http but yes it work when i fetch tweets but did not work when i post a tweet. Here below is my code for that.
require "base64"
require "json"
require "net/http"
require "net/https"
require "uri"
### Setup access credentials
consumer_key = "XXXXXXXXX"
consumer_secret = "XXXXXXXXX"
### Get the Access Token
bearer_token = "#{consumer_key}:#{consumer_secret}"
bearer_token_64 = Base64.strict_encode64(bearer_token)
token_uri = URI("https://api.twitter.com/oauth2/token")
token_https = Net::HTTP.new(token_uri.host,token_uri.port)
token_https.use_ssl = true
token_request = Net::HTTP::Post.new(token_uri)
token_request["Content-Type"] = "application/x-www-form-urlencoded;charset=UTF-8"
token_request["Authorization"] = "Basic #{bearer_token_64}"
token_request.body = "grant_type=client_credentials"
token_response = token_https.request(token_request).body
#@timeline_json = token_response
token_json = JSON.parse(token_response)
access_token = token_json["access_token"]
#puts access_token
#@timeline_json = access_token
### Use the Access Token to make an API request
timeline_uri = URI("https://api.twitter.com/1.1/statuses/update.json?screen_name=testingclient1")
timeline_https = Net::HTTP.new(timeline_uri.host,timeline_uri.port)
timeline_https.use_ssl = true
timeline_request = Net::HTTP::Post.new(timeline_uri)
#@timeline_json = timeline_request
timeline_request["Authorization"] = "Bearer #{access_token}"
timeline_request["Content-Type"] = "application/json;charset=UTF-8"
timeline_request["status"] = "my tweet"
timeline_response = timeline_https.request(timeline_request).body
timeline_json = JSON.parse(timeline_response)
puts JSON.pretty_generate(timeline_json)
@timeline_json = timeline_jsonOn Mon, Apr 25, 2016 at 6:37 PM, Greg Navis <contact@gregnavis.com> wrote:--I think what you're looking for is an HTTP client. You have plenty of options:* curl binding for Ruby* Net::HTTP in the standard library* plenty of gems built on top of thoseYou might take a look at http://jvns.ca/blog/2016/03/04/whats-up-with-ruby-http-libraries/ by Julia Evans. She lists a dozen of gems.--Greg NavisI help small tech companies to scale Heroku-hosted Rails apps.
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAA6WWt_PYw_UGgu7NVNAADc0YZDPGrfPX5DiHev2c3DXzdFrSQ%40mail.gmail.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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJMzsO8ZV51EFGKURnbS1E4vcV9EWZjEmZEaRfAawuohwcj9LA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Re: [Rails] Want to write api of twitter to post tweet without any gem/library means with curl command
Ii tried with net/http but yes it work when i fetch tweets but did not work when i post a tweet. Here below is my code for that.
require "base64"
require "json"
require "net/http"
require "net/https"
require "uri"
### Setup access credentials
consumer_key = "XXXXXXXXX"
consumer_secret = "XXXXXXXXX"
### Get the Access Token
bearer_token = "#{consumer_key}:#{consumer_secret}"
bearer_token_64 = Base64.strict_encode64(bearer_token)
token_uri = URI("https://api.twitter.com/oauth2/token")
token_https = Net::HTTP.new(token_uri.host,token_uri.port)
token_https.use_ssl = true
token_request = Net::HTTP::Post.new(token_uri)
token_request["Content-Type"] = "application/x-www-form-urlencoded;charset=UTF-8"
token_request["Authorization"] = "Basic #{bearer_token_64}"
token_request.body = "grant_type=client_credentials"
token_response = token_https.request(token_request).body
#@timeline_json = token_response
token_json = JSON.parse(token_response)
access_token = token_json["access_token"]
#puts access_token
#@timeline_json = access_token
### Use the Access Token to make an API request
timeline_uri = URI("https://api.twitter.com/1.1/statuses/update.json?screen_name=testingclient1")
timeline_https = Net::HTTP.new(timeline_uri.host,timeline_uri.port)
timeline_https.use_ssl = true
timeline_request = Net::HTTP::Post.new(timeline_uri)
#@timeline_json = timeline_request
timeline_request["Authorization"] = "Bearer #{access_token}"
timeline_request["Content-Type"] = "application/json;charset=UTF-8"
timeline_request["status"] = "my tweet"
timeline_response = timeline_https.request(timeline_request).body
timeline_json = JSON.parse(timeline_response)
puts JSON.pretty_generate(timeline_json)
@timeline_json = timeline_json
--I think what you're looking for is an HTTP client. You have plenty of options:* curl binding for Ruby* Net::HTTP in the standard library* plenty of gems built on top of thoseYou might take a look at http://jvns.ca/blog/2016/03/04/whats-up-with-ruby-http-libraries/ by Julia Evans. She lists a dozen of gems.--Greg NavisI help small tech companies to scale Heroku-hosted Rails apps.
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAA6WWt_PYw_UGgu7NVNAADc0YZDPGrfPX5DiHev2c3DXzdFrSQ%40mail.gmail.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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJMzsO9okWzSXw%3DShAeW7iqzhSXxSu0aKe2JEZddiH9wmi%3DufA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
[Rails] FreshForex — fresh view on money
Are you looking for the broker you can easy and comfortable work with?
Your chase is over!
FreshForex is a reliable broker for your profitable trading. These are
not just words — get the proof!
For 11 years we've been helping each trader to trade in Forex market
10 minutes for withdrawal of your funds in our company
102 trading instruments for getting profit including currency pairs and
contracts for difference
0% commission on deposit and withdrawal
15 most popular payment methods
0,05 seconds — the promptest execution of trades
101% is our bonus for the first deposit
$0 — no minimal deposit even for ECN-account
0 pips are the swops on Sawp Free accounts for long-termed trade
$10 — you can return for losing trades
$20 from each lot — you won't find a better offer on partnership program
24/5 — our client support is at your service
We always have something to offer our clients: promotions, bonuses and
contests with real prizes. Watch all the information you are interested
in on our web site.
Do not doubt your choice – open an account in FreshForexcompany and
these digits will start working for you.
Welcome to freshforex.com!
(URL: http://freshforex.com/?aff=35842)
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/021afa434e696ca826b9d481cf9122ad%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
[Rails] Save my table historic with all the authorizations ids checked
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/54e462cd-12ef-4706-87f3-e6259cc31506%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[Rails] Re: Re: Re: warning: toplevel constant Configuration referenced by ActiveRecord::Base::Configuration
> On 26 April 2016 at 05:10, Naveed Alam <lists@ruby-forum.com> wrote:
>> Yes I have a Configuration Model/Controler below are the links to
>> controller, and model
>
> In that case your simplest solution may be to change the name of the
> model.
>
> Colin
If I change the model name, then I have to make a lot of changes in
many other Controllers and where its been called
and the migration too.
so I get a lot of error messages.
Can u get any idea from the below tree diagram that if there any change
possible can make it resolve the problem. I changed the configration
folded name in fedena_theme app views but didnt do anything
The Configration model's file tree is
App
|-Views
|_Configuration.rb
And this plugin fedena themes files tree is
App -Vendor - Plugins- fedena_theme
:
:_ views
:_Configuration
: _theme_select.html
:_themes
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/afa0d07307acce3a17757b1b539babd2%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
[Rails] Example of Grape API with token-auth needed
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d30fb986-ab56-4c41-9528-e1de24a80905%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: [Rails] Re: Re: warning: toplevel constant Configuration referenced by ActiveRecord::Base::Configuration
> Colin Law wrote in post #1183067:
>> On 25 April 2016 at 16:08, Naveed Alam <lists@ruby-forum.com> wrote:
>>>> => []
>>> in 2.3.10 its not changing the theme.
>> That does not answer the question.
>>
>> If you search your code for Configuration does it find anything?
>>
>> Colin
>
> Yes I have a Configuration Model/Controler below are the links to
> controller, and model
In that case your simplest solution may be to change the name of the model.
Colin
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLt%3DrcNWDvPNVOoeer9mNKf_BKO3Xpc%3DBnO38cRoYmpj-A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Monday, April 25, 2016
Re: [Rails] Re: There was an error while trying to load the gem 'uglifier'
how to redirect to any page after logout the user and destroy the sesssion?--
please help
my problem is after logout my app redirect to my index page (root_path page) and i don't want it .how to go to separate separate page after logout?
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/bf15bb36-6fd7-44f9-8e69-e1e3c151366c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAHbr1db3njb%2BKxBYCUFSs_SqM_hiZWP64fszA2VMekzo2v1%3DxQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
[Rails] Re: There was an error while trying to load the gem 'uglifier'
please help
my problem is after logout my app redirect to my index page (root_path page) and i don't want it .how to go to separate separate page after logout?
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/bf15bb36-6fd7-44f9-8e69-e1e3c151366c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[Rails] Re: Re: warning: toplevel constant Configuration referenced by ActiveRecord::Base::Configuration
> On 25 April 2016 at 16:08, Naveed Alam <lists@ruby-forum.com> wrote:
>>> => []
>> in 2.3.10 its not changing the theme.
> That does not answer the question.
>
> If you search your code for Configuration does it find anything?
>
> Colin
Yes I have a Configuration Model/Controler below are the links to
controller, and model
https://www.dropbox.com/s/4znjursig0oz7af/configuration_controller.rb?dl=0
https://www.dropbox.com/s/sy6o9c3o4xskj15/configuration.rb?dl=0
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/2e5df4232dcae6c5034135bedb67fa67%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
[Rails] Re: Partial view won't render content
> I have the slightest clue to why the list elements aren't being
> populated by the data.
I fixed it. Thanks.
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/7730fda4c30faf1625d87d24b6e3f71b%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
[Rails] Partial view won't render content
fine. When I try to use it inside of the partial view, nothing shows at
all.
feed_controller.rb
def hashtags
@hashtags = SimpleHashtag::Hashtag.order('created_at DESC').limit(10)
end
_hashtag_list.html.erb
<% if @hashtags.present? %>
<ul>
<% @hashtags.each do |hashtag| %>
<li><%= link_to hashtag.name, hashtag_path(hashtag.name)
%></li>
<% end %>
</ul>
<% end %>
I have the slightest clue to why the list elements aren't being
populated by the data.
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/07f84000c7d1023fa48fcd61a979094b%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
Re: [Rails] Re: There was an error while trying to load the gem 'uglifier'
Just install the binary file. .exe file
how to make install this nodejs on system i.e on Windows 7?
please help me.
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e26c7563-319c-45a9-b846-da9a710f8e65%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2BS_iCvtOtaViUtdPKK-QJ9Md9Xqgut_xUgAu6rJffRfkbSFUA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Re: [Rails] Re: There was an error while trying to load the gem 'uglifier'
please help me.
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e26c7563-319c-45a9-b846-da9a710f8e65%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: [Rails] Re: There was an error while trying to load the gem 'uglifier'
please help me.
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/104d93ea-158b-48c3-a7ed-4636d912c954%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: [Rails] Re: warning: toplevel constant Configuration referenced by ActiveRecord::Base::Configuration
> Greg Navis wrote in post #1183062:
>> The simplest way to trigger this warning (it's not Rails-related BTW) is
>> this:
>>
>> $ irb
>> irb(main):001:0> class Foo
>> irb(main):002:1> end
>> => nil
>> irb(main):003:0> Foo::Array.new
>> (irb):3: warning: toplevel constant Array referenced by Foo::Array
>> => []
>>
>> So it seems that in addition to ActiveRecord::Base:Configuration
>> there's
>> another class called Configuration defined at the top level.
>>
>> Did you define this class? If not, does any of your dependencies define
>> this class?
>
> As I told before in Rails 2.3.5 it was working fine, even though was
> showing this warning as well but even then I could change the theme, but
> in 2.3.10 its not changing the theme.
That does not answer the question.
If you search your code for Configuration does it find anything?
Colin
>
> --
> 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 rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/1f8d932b6e87d54c17a1b78d975aedf9%40ruby-forum.com.
> For more options, visit https://groups.google.com/d/optout.
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLu6wHA7ukxUr99DZhhWiOMOLc2HZkFFZmZNc5Y9%3DQCtrA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
[Rails] Re: warning: toplevel constant Configuration referenced by ActiveRecord::Base::Configuration
> The simplest way to trigger this warning (it's not Rails-related BTW) is
> this:
>
> $ irb
> irb(main):001:0> class Foo
> irb(main):002:1> end
> => nil
> irb(main):003:0> Foo::Array.new
> (irb):3: warning: toplevel constant Array referenced by Foo::Array
> => []
>
> So it seems that in addition to ActiveRecord::Base:Configuration
> there's
> another class called Configuration defined at the top level.
>
> Did you define this class? If not, does any of your dependencies define
> this class?
As I told before in Rails 2.3.5 it was working fine, even though was
showing this warning as well but even then I could change the theme, but
in 2.3.10 its not changing the theme.
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/1f8d932b6e87d54c17a1b78d975aedf9%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
Re: [Rails] warning: toplevel constant Configuration referenced by ActiveRecord::Base::Configuration
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAA6WWt-saY0W%3D5orpA4%2BOvz_ZTcLHwVYtRrjtSSDvPdVcVrgyQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Re: [Rails] Want to write api of twitter to post tweet without any gem/library means with curl command
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAA6WWt_PYw_UGgu7NVNAADc0YZDPGrfPX5DiHev2c3DXzdFrSQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
[Rails] [Screencast] Meta Tags
Adding Meta Tags to your website is important for SEO ranking and
content display. Learn how to easily add meta tags to your Ruby on Rails
application.
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/cb0e9a69e0049f574cf43287fca9864c%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
[Rails] Want to write api of twitter to post tweet without any gem/library means with curl command
I am new to ruby want to create an api which post tweet to twitter without help of any gem include as we did on command line by running below code:
curl --request 'POST' 'https://api.twitter.com/1.1/statuses/update.json' --data 'status=Maybe+he%27ll+finally+find+his+keys.+%23peterfalk' --header 'Authorization: OAuth oauth_consumer_key="i6baQCTt1sCXAo8YWcKhuly9Z", oauth_nonce="12f94f3e4b2ded3bbfdfe781de60ae73", oauth_signature="x6%2Fi2w%2F0RjN4prcFmA5HthOZU3Q%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1461568353", oauth_token="2291131736-LpQkfe5diMTung5mVQ0Dc5EKA9u8qnIgWuPqau9", oauth_version="1.0"' --verbose
But in controller how can we use this command so it get ouath_signature and post the tweet.
As In php it did with curl want same way ion ruby.
Please help me to get out of it
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4d03bcb7-ec04-49b4-a5c9-4afa482ef493%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[Rails] Want to write api of twitter to post tweet without any gem/library means with curl command
I am new to ruby want to create an api which post tweet to twitter without help of any gem include as we did on command line by running below code:
curl --request 'POST' 'https://api.twitter.com/1.1/statuses/update.json' --data 'status=Maybe+he%27ll+finally+find+his+keys.+%23peterfalk' --header 'Authorization: OAuth oauth_consumer_key="i6baQCTt1sCXAo8YWcKhuly9Z", oauth_nonce="12f94f3e4b2ded3bbfdfe781de60ae73", oauth_signature="x6%2Fi2w%2F0RjN4prcFmA5HthOZU3Q%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1461568353", oauth_token="2291131736-LpQkfe5diMTung5mVQ0Dc5EKA9u8qnIgWuPqau9", oauth_version="1.0"' --verbose
But in controller how can we use this command so it get ouath_signature and post the tweet.
As In php it did with curl want same way ion ruby.
Please help me to get out of it
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJMzsO-jX_yGgVAz-g6wFr5%3D2s%3DSmR40sqOGSSZMHwR3Fc9hrw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Sunday, April 24, 2016
[Rails] warning: toplevel constant Configuration referenced by ActiveRecord::Base::Configuration
I am facing the error msg mention in subject, and my theme doesn't
change.
*** init.rb ********
require File.join(File.dirname(__FILE__), "lib", "fedena_theme")
FedenaPlugin.register = {
:name=>"fedena_theme",
:description=>"Fedena Theme"
}
******* /// the line 52 in init.rb showing error /////////////****
52. current_theme =
ActiveRecord::Base::Configuration.get_config_value "Color"
*****fedena_theme.rb **********
# TestPlugin
require 'action_view/helpers/asset_tag_helper'
class FedenaTheme
COLORS = {1 => {:color => "#701288",:accent_color =>
"#4e0d5f",:border_color => "#8d41a0",:sort_order => 16},
2 => {:color => "#39a6ef",:accent_color =>
"#2874a7",:border_color => "#61b8f2",:sort_order => 24},
3 => {:color => "#006290",:accent_color =>
"#004465",:border_color => "#3381a6",:sort_order => 26}
}
FONTS ={1 =>{:text => "Arial", :value => "Arial"},2 =>{:text =>
"Verdana", :value => "Verdana, Arial"},3 =>{:text => "Comic Sans MS",
:value => "Comic Sans MS, Arial"},4 =>{:text => "Georgia", :value =>
"Georgia, Times new Roman"},5 => {:text => "Times new Roman", :value =>
"Times new Roman"},6 => {:text => "Trebuchet MS", :value => "Trebuchet
MS, Arial"},7 => {:text => "Garamond", :value => "Garamond, Times new
Roman"}}
unloadable
def self.general_settings_form
"configuration/theme_select"
end
def self.available_themes
directory = "#{Rails.public_path}/themes"
themes = Dir.entries(directory).select {|entry| File.directory?
File.join(directory,entry) and !(entry =='.' ||
entry == '..') }
return [['Default', 'default']]+themes.collect { |theme|
[theme.titleize, theme] }
end
def self.selected_theme
Configuration.get_config_value("Color")
end
def self.selected_color_value
val = selected_theme
COLORS[val.to_i][:color]
end
end
********* Errors showing
/vendor/plugins/fedena_theme/init.rb:52: warning: toplevel
constant Configuration referenced by ActiveRecord::Base::Configuration
Please help, I dont understand the error and how to resolve this. I
upgraded my App from Rails 2.3.5 to 2.3.10
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ce89f0afdc1275b0366e8e4a5d57d7a4%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
Re: [Rails] Re: There was an error while trying to load the gem 'uglifier'
my operating system is: windows 7 and my rails version is: 4.2.5.1 and ruby is: ruby 2.1.8p440 (2015-12-16 revision 53160) [i386-mingw32]--
whenever i installed nodejs on system this error shows:
D:\rubyproject>gem install nodejs
ERROR: Could not find a valid gem 'nodejs' (>= 0) in any repository
ERROR: Possible alternatives: nodes, noderb, modeljs, models, node
what do i do ?
please help me
On Monday, December 14, 2015 at 1:47:09 PM UTC+5:30, Fu Qiang Zhang wrote:
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8af6fb81-d84e-4544-8f47-707c540532e1%40googlegroups.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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2BS_iCt3AahWKfyTCW6eBW%3DyEfLE%2BncurZ-FY6q_z%2BEcVuqCHw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Re: [Rails] Re: There was an error while trying to load the gem 'uglifier'
On Mon, Apr 25, 2016, at 14:54, ishant kumar wrote:
> my operating system is: windows 7 and my rails version is: 4.2.5.1 and
> ruby is: ruby 2.1.8p440 (2015-12-16 revision 53160) [i386-mingw32]
> whenever i installed nodejs on system this error shows:
>
> D:\rubyproject>gem install nodejs
> ERROR: Could not find a valid gem 'nodejs' (>= 0) in any repository
> ERROR: Possible alternatives: nodes, noderb, modeljs, models, node
> what do i do ?
> please help me
Yes, it's a separate program, not part of ruby/gems. Go to
https://nodejs.org/en/ to download it.
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/1461563792.572825.588451017.6B337690%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.
[Rails] Re: There was an error while trying to load the gem 'uglifier'
whenever i installed nodejs on system this error shows:
D:\rubyproject>gem install nodejs
ERROR: Could not find a valid gem 'nodejs' (>= 0) in any repository
ERROR: Possible alternatives: nodes, noderb, modeljs, models, node
what do i do ?
please help me
On Monday, December 14, 2015 at 1:47:09 PM UTC+5:30, Fu Qiang Zhang wrote:
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8af6fb81-d84e-4544-8f47-707c540532e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[Rails] Cant Access Table from console
Going into the console and listing the tables show it but trying to do
"tablename.connection" doesnt work. I only have 2 tables in this app so
far and it works fine on the second one.
What could be wrong?
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/eadf1a790ef1ea7fe7db6fcff532ac8b%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

