This is for your seed file. You can create a task for it as well.
On Thursday, January 19, 2017 at 11:59:48 AM UTC-5, David Williams wrote:
>
> vocabularies = File.read(Rails.root.join('lib', 'seeds', 'words.csv'))
> csv = CSV.parse(vocabularies, :he
vocabularies = File.read(Rails.root.join('lib', 'seeds', 'words.csv'))
csv = CSV.parse(vocabularies, :headers => true, :encoding => 'ISO-8859-1')
csv.each do |row|
t = Vocabulary.new
t.word_column1 = row[0]
t.word_column2 = row[1]
t.word_column3 = row[2]
t.word_column4 = row[3]
t.word
The authenticated user root path works perfectly. What I'm trying to do is
stop the user from returning back to the root 'welcome#index' after login?
authenticated :user do
root 'hub#index', as: :authenticated_root
end
# How can I stop users from going back to root 'welcome#index' after they'
Jan 14, 2017 at 4:55 PM, David Williams > wrote:
> > What do you consider the best approach to having 20 or more forms
> related to
> > the same model?
>
> Uh, "don't" ?
>
> What is the use case that requires "20 or more forms" for a model?
What do you consider the best approach to having 20 or more forms related
to the same model? The thing is that I may have to template forms for an
enterprise level solution. Should I make one model with a dozen form input
attributes and build each form page separately, or is there another way
t
Very nice. Thank you.
On Wednesday, January 11, 2017 at 5:46:39 PM UTC-5, Walter Lee Davis wrote:
>
> In that case, look at JavaScript calculators, this is nothing related to
> Rails, I'm afraid. Drop the JavaScript in the vendor/assets folder, make
> sure you link a
I am going to allow the user to use it on the fly. They'll just calculate
basic math.
On Tuesday, January 10, 2017 at 10:53:46 PM UTC-5, Walter Lee Davis wrote:
>
> What do you need to calculate, and what will you do with the result?
>
> Walter
>
> > On Jan 10
Does anyone have a calculator gem. I need one that easily embeds into the
view.
--
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+unsubscr
I've been searching everywhere for a proper drag and drop solution for my
rails forms. I came across FormBuilder-rb which is supported by
Formbuilder.js. The gem currently doesn't support Rails 5, because it's
unmaintained and it also doesn't work with MySQL (Only Postgres) Can you
give me a ha
I found one solution that stores the reposted data within a 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
David Williams wrote in post #1183093:
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.
Let me explain the purpose for this job. I'm trying to remove orphan
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.
cla
David Williams wrote in post #1183071:
> 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
When I attempt to use the same query in activerecord, it works perfectly
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
I clearly have to pass the id of each post to the JQuery slider itself.
Since the nth elements are showing the content hanging on the outside of
the object instances, and the reply button to activate the slider is not
working as well for them.
--
Posted via http://www.ruby-forum.com/.
--
You
I'm currently using 'acts_commentable_with_threading' on my Post model.
I am able to add comments on the show.html.erb page for the posts. What
I've been trying to do is add this logic inside of the posts feed for
users. I can't seem to add the comments form to the _feed_posts.html.erb
partial. Whi
Colin Law wrote in post #1182808:
> On 12 April 2016 at 19:10, David Williams wrote:
>>>> undefined method `state_id' for #
>
> What has the categories table got to do with it? I thought this
> problem is about profiles and states.
>
> Colin
I made a small
I fixed it, thanks guys. The state_id was missing on the profile table.
--
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
Colin Law wrote in post #1182803:
> On 12 Apr 2016 6:58 p.m., "David Williams" wrote:
>>
>> shahroon ali wrote in post #1182801:
>> > belongs_to :states should be :state singular.
>> >
>> > On Tue, Apr 12, 2016 at 10:47 PM, David Williams
shahroon ali wrote in post #1182801:
> belongs_to :states should be :state singular.
>
> On Tue, Apr 12, 2016 at 10:47 PM, David Williams
I fixed the typo, but it's still not working.
undefined method `state_id' for #
--
Posted via http://www.ruby-forum.com/.
--
You re
I have a profile model that has a user state model (emotional state) -
What I would like to do is give the user object the ability to change
their state through the profile model. The code that I've written is
below. I'm receiving "NoMethodError - undefined method 'state_id' for
#" even though, the
I got it!!!
def show
@post = Post.find(params[:id])
@new_comment = Comment.build_from(@post, current_user.id, "")
respond_to do |format|
format.html {render :file => "posts/modal", layout: false}
format.js {render :file => "posts/modal", layout: false}
format.json {re
David Williams wrote in post #1182748:
> Walter Davis wrote in post #1182744:
>> # views/posts/modal.html.erb
>>
>> # routes.rb
>>
>> resources :posts do
>> member do
>> get :modal
>> end
>> end
>
> I tried this meth
David Williams wrote in post #1182748:
> Walter Davis wrote in post #1182744:
>> # views/posts/modal.html.erb
>>
>> # routes.rb
>>
>> resources :posts do
>> member do
>> get :modal
>> end
>> end
>
> I tried this meth
Walter Davis wrote in post #1182747:
>>> modal, nothing else, and then turn off the layout so you don't get the
> Please have a look at this very simple Rails scaffold app with a modal:
> https://github.com/walterdavis/modal-test
>
> Walter
I'm checking it out now. Thanks.
--
Posted via http:/
Walter Davis wrote in post #1182744:
> # views/posts/modal.html.erb
>
> # routes.rb
>
> resources :posts do
> member do
> get :modal
> end
> end
I tried this method, but it went back to the default one image showing
problem that I had earlier. I will see if I can find a way aroun
Walter Davis wrote in post #1182743:
>> Should I take a different approach, than hard-coding the show action in
>> the link itself.
>
> You need a different method to render this, or if it will only ever
> appear in the modal, then you need to add layout: false to your
> controller so it doesn't re
Walter Davis wrote in post #1182737:
Ok, I tested a second link method
<%= link_to image_tag(post.photo.url(:medium), style: 'height: 300px;
width: 500px;'), post, remote: true, data: {:toggle => 'modal', :target
=> '#reusable_modal'}, lazy: true %>
When I remove the post local variable -> tar
This link is rendering the entire show action inside of the modal.
(Including the navigation bar)
<%= link_to image_tag(post.photo.url(:medium), style: 'height: 300px;
width: 500px;'), post_path(controller: :posts, :action => :show, :id =>
post.id), remote: true, data: {:toggle => 'modal', :targ
It's still not dynamically updating.
×
<%= image_tag(post.user.avatar_url(:thumb), class:
'round-image-50') %>
<%= post.user.username %>
Walter Davis wrote in post #1182728:
>>> undefined method 'user' for nil:NilClass
>>> then that means @post is nil.
>>>
I made some changes, is this ok?
<%= image_tag(post.photo.url(:large), style: 'max-width:
570px;') %>
<%= sanitize content_with_emoji(post.body
Walter Davis wrote in post #1182728:
> Here's what I use in Bootstrap 3 to work around this:
>
> $(document).on('page:change', function(){
> // shims for the Bootstrap Modal, which is bloody-minded about caching
> content per modal
> $(document).on('click', '#reusable_modal [data-dismiss="moda
Colin Law wrote in post #1182722:
> On 9 April 2016 at 23:57, David Williams wrote:
>> _post.html.erb
>>
>> <%= @post.user.username.capitalize %>
>
> As always it is best to paste the complete error message and tell us
> which line it refers to. If it is the l
_post.html.erb
<%= @post.user.username.capitalize %>
<%= image_tag(@post.photo.url(:large)) %>
etc.
--
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 rec
I managed to get the _form to display inside of the modal and fire off.
I'm having trouble with displaying show actions inside of the modal.
The error that I'm receiving is undefined method 'user' for
nil:NilClass. The data request is not transferring over to the show
action when I click the link_
Colin Law wrote in post #1182302:
> On 18 Mar 2016 21:15, "David Williams" wrote:
I fixed the issue, clashing CSS classes was causing bootstrap to move
child objects on the grid.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed
The top item generated is perfectly positioned, but the second and third
items directly beneath with no padding in-between. Does ruby on rails
automatically override css styling when new items are added to the erb
view? Am I forced to use JS library like isotope or masonry?
Thank you.
Attachments
Adding padding to the top fixed the issue with the tiles mashing
together. But, the second tile is moved over to the left. As if it's a
relative to the top tile. Very strange.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Group
Walter Davis wrote in post #1182112:
> Part of one of the RailsConf sessions I went to, either last year or the
> year before, could have been re-titled "default_scope considered
> harmful". I don't think it's deprecated or anything, but it is
> definitely something to use sparingly, and with
Colin Law wrote in post #1182073:
> On 9 March 2016 at 21:51, David Williams wrote:
>> "articles"."category_id" = ? ORDER BY "articles"."created_at" DESC
>> [["category_id", 1]]
>>
>>
>> I'm getting
In my articles model, I created a scope that links categories to their
respective articles posts. When I use the rails console, the method
works perfectly when I query the db.
article.rb
scope :category_technology, -> {where(category_id: 1)}
@articles.category_technology
Article Load (0.5ms) SE
Hassan Schroeder wrote in post #1182051:
> On Tue, Mar 8, 2016 at 4:00 PM, David Williams
> wrote:
>
> ?! You're creating a form tag within a form tag - not valid HTML in
> any way. And that outer form has no method or action attributes, so
> not much is ever goin
After attempting to create a record in the console. I get the output
below
(0.5ms) begin transaction
Article Exists (0.0ms) SELECT 1 AS one FROM "articles" WHERE
("articles"."id" != 12) AND "articles"."slug" = ? LIMIT 1 [["slug",
"wow-the-movie-was-great"]]
(0.0ms) rollback transac
When I click the submit button, the form automatically refreshes the
page. The console doesn't show any errors related to strong parameters
as stated below. I will post the controller, _form view and model
information
Started GET
"/articles/new?utf8=%E2%9C%93&authenticity_token=GP%2Fm4GX2Z2CUjuFt5
I went into the gem's directory to add a plugins folder
app/assets/javascript/ckeditor/plugins I then added preview.js to
it. Afterwards, I added //= require ckeditor/plugins/preview.js to
ckeditor\application.js. Lastly, I added config.extraPlugins =
'preview'; to config.js. I still don't
I have the 'ckeditor' gem installed, but I'm trying to also add a
preview pane for users to see the output of their HTML
document/formatting. The gem's documentation tells you everything but
how to add new plugins.
http://ckeditor.com/addon/preview
https://github.com/galetahub/ckeditor
Can you s
Colin Law wrote in post #1181854:
> On 2 March 2016 at 22:06, David Williams wrote:
> Just to point out that the fundamental mistake you made here was
> calling it @following_activities. If you had called it
> @following_posts or something similar then you would probably fnot
>
Colin Law wrote in post #1181852:
> On 2 March 2016 at 21:43, David Williams wrote:
>> Iterating over the @following_activities instance variable is giving me
>> errors for user.avatar.url and user.post. I don't understand why it's
>> not collecting all of the i
Iterating over the @following_activities instance variable is giving me
errors for user.avatar.url and user.post. I don't understand why it's
not collecting all of the information from the user object.
<% if @following_activities.any? %>
<% @following_activities.each do |user| %>
Colin Law wrote in post #1181847:
> On 2 March 2016 at 18:47, David Williams wrote:
>> Post.where(user_id:following_ids).order("created_at
>> desc").paginate(page:params[:page])
>
> Also, assuming that you have User has_many following_users and User
> has_many po
Mahcsig wrote in post #1181846:
> def feed
> following_ids = current_user.following_users.map(&:id)
> following_ids << current_user.id
> @following_activities =
> Post.where(user_id:following_ids).order("created_at
> desc").paginate(page:params[:page])
> end
>
>
> ~Mahcsig
I'm getting an err
Mahcsig wrote in post #1181844:
> How about just adding the current_user.id to the following_ids array?
> You
> could then pull all the posts in one shot, and remove the next two
> lines.
>
> ~Marc
>
>
> ~Mahcsig
>
> On Wed, Mar 2, 2016 at 10:47 AM, David Williams
I've been trying to combine my own post with the users that I follow in
chronological order DESC. Can you help me build the proper query method
for it?
What I currently have is the code below
def feed
following_ids = current_user.following_users.map(&:id)
@following_activities =
Post.where(u
I got it! had to set self.is_admin? Thanks for pointing me in the right
direction.
--
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
Walter Davis wrote in post #1181250:
>> self.username
>> end
>
> This method is going to return the username, which is probably set to
> something, and that means true when you ask this way. You probably meant
> to check if the admin attribute on that user model.
>
> Walter
I have a is_admin colu
I'm checking if a user is an admin, and then I will show a delete button
if he is. For whatever reason, it's automatically setting the boolean to
true. It says is_admin: false in the console when I pull up the user's
record.
Check status of user
def is_admin?
self.username
end
view method
<%
Colin Law wrote in post #1181246:
>>
>> <% if @user.profile.location.nil?
>> ? "" : @user.profile.location %> <% end %>
>
> You are testing @user.profile.location for nil, but it is
> @user.profile that is nil
>
> Colin
Doh!Thanks. I fixed it now.
--
Posted via http://www.ruby-forum.com/.
--
Hello to my fellow rails devs.
I'm currently receiving an "undefined method `location' for
nil:NilClass" exception error in one of my views when the user hasn't
filled in the form for their profile.
How would I approach bypassing this error in the cleanest way?
I've tried to use the method below
Essentially, I'm trying to figure out how to create the retweet
functionality for users.
--
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
I got it working, but now, I just have to add AJAX.
<% if user_signed_in? %>
<% if current_user.following?(@user) %>
<%= link_to "Unfollow", unfollow_user_path(@user), class:
'btn btn-danger' %>
<% else %>
<%= link_to "Follow", follow_user_path(@u
Matt Jones wrote in post #1180799:
They don't have an updated wiki for the gem on Rails 4. Maybe, you and I
can put one together to solve this problem for once and for all.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
Matt Jones wrote in post #1180799:
> On Thursday, 21 January 2016 22:21:37 UTC-6, Ruby-Forum.com User wrote:
>> class FollowsController < ApplicationController
>>
>>
>> <% end %>
>> the @user instead.
> The behavior you've described doesn't match the code. The `:locals => {
> :user => @user }`
I want the buttons to show, but only redirect users that are not logged
in.
--
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, sen
Matt Jones wrote in post #1180578:
> On Tuesday, 12 January 2016 00:12:04 UTC-5, Ruby-Forum.com User wrote:
>> follow to unfollow.
>>
I'm returning for your advice and help. I've implemented a
Follows_Controller.Rb Below
class FollowsController < ApplicationController
def create
@user = U
Walter Davis wrote in post #1180603:
>>> It's giving me Nan when I wrap the parseInt method around the counter.
>>
>> Check that your spelling of the attribute is correct, note the typo in the
> example. Also, if you want to be extra-careful (just had to deal with
> this
> yesterday) you can go all
Walter Davis wrote in post #1180603:
>>> It's giving me Nan when I wrap the parseInt method around the counter.
>>
>> Check that your spelling of the attribute is correct, note the typo in the
> example. Also, if you want to be extra-careful (just had to deal with
> this
> yesterday) you can go all
tamouse m. wrote in post #1180583:
> David Williams writes:
>
>> max_length = counter.data('maximum-length');
>> review_text.keyup(function() {
>> counter.text(max_length - ($(this).val().length));
>> });
>> });
>>
Hassan Schroeder wrote in post #1180540:
> On Mon, Jan 11, 2016 at 9:02 PM, David Williams
> wrote:
>> Big numbers will cause issues within the views when a follower reaches a
>> certain amount. For example. (1,000,000) How can I convert the number
>> into 1 Mil or for
I'm unable to get the character counter to show an initial value.
When you type a something in, it says -1, -3, -4. It starts off at 0,
instead of the maximum amount allowed. I'd prefer it countdown from the
highest amount of characters allowed. 400, 399, 398, etc
$(document).ready(function() {
Matt Jones wrote in post #1180578:
> On Tuesday, 12 January 2016 00:12:04 UTC-5, Ruby-Forum.com User wrote:
>> follow to unfollow.
>>
>>
> A quick word of advice: try looking for things before asking here. For
> instance, the FIRST HIT on Google for the query "acts_as_follower ajax"
> (without quot
If you happen to have a complete solution for setting up
Acts_As_Follower Gem. Please, post it for your fellow devs.
https://github.com/tcocca/acts_as_follower
Users_Controller.rb [content]
Routes.rb [content]
_follow.html.erb [button]
JS for sending AJAX request and changing the state of the but
Big numbers will cause issues within the views when a follower reaches a
certain amount. For example. (1,000,000) How can I convert the number
into 1 Mil or for 1,500,000 into 1.5 Mill?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Goog
tamouse m. wrote in post #1176466:
> On Fri, Jul 10, 2015 at 10:03 PM, David Williams
> wrote:
>
>> I'm in need of the AJAX method that allows a person to follow without
>> rendering a view.
>>
>
> On the server side, if you really wish to render nothing at
I'm in need of the AJAX method that allows a person to follow without
rendering a view.
--
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
[GET] /users/:id/follow - follow_user
[GET] /users/:id/unfollow - unfollow_user
JS
_create.js.erb
$('#follow_user').html('<%= escape_javascript(render :partial =>
'follow_user', :locals => {:user => @user}) %>');
//JQuery
_destroy.js.erb
$('#follow_user').html('<%= escape_javascript(render :par
If you created an AJAX solution with the buttons before? Please post the
snippets while explaining your best practice method.
--
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
I'm currently in the process of completing the setup for the
acts_as_follower gem for Rails 4. When I click on the follow button, the
ActionView Exception Missing Template kicks in. Does anyone know how to
create a multi-state Zurb Foundation button for it or even custom radius
button. Simply: "Fol
Colin Law wrote in post #1175739:
> On 26 June 2015 at 16:40, David Williams wrote:
>>> "current_user.avatar.url(:thumb)"
> Also what is the code
> unless: avatar.nil?
> supposed to be doing? I see no code setting up a variable avatar.
>
> Colin
I fixed
Nugi Nugraha wrote in post #1175693:
> On Fri, Jun 26, 2015 at 7:20 AM, David Williams
> wrote:
>
>> unless: avatar.nil?) %>
>>
>
> I think error message is obvious
> you got that error because @user was nil
> if you're using devise, you can try this
In my application.html.erb, I have a navigation bar that stores the user
avatar. He or she should be able to return to the main index or traverse
through the different controllers without issue. I seem to be getting a
"Cannot find avatar for type ActiveRecord::Relation"
undefined method `avatar' f
module MessagesHelper
def recipients_options
s = ''
users = User.all + BizUser.all; users.each do |user|
s << "#{user.username}"
end
s.html_safe
end
end
How would I pass if nil to the attachment_url for user :profile_avatar?
when the image isn't available.
--
Posted vi
I'm currently using four partials
_usernavbar.html.erb
_adminnavbar.html.erb
_landingnavbar.html.erb
_search_box.html.erb
<% if user_signed_in? %>
<%= render 'navigation_partials/usernavbar' %>
<% elsif admin_user_signed_in? %>
<%= render 'navigation_partials/adminnavbar' %>
<% e
I can't seem to figure out why Devise is falling back to the gem views
for one* of the user models.
Here are my routes and the link that I'm using to connect to the new
action for the registration form.
Available Devise Routes
POST /registration.biz_user(.:format)
devise/registration
Colin Law wrote in post #1166693:
> On 15 January 2015 at 04:12, David Williams
> wrote:
>> These two functions below work perfectly for end to end normal user
>> interaction. But, I need help giving line 2 of the code "recipients =
>> User.where(id: params['r
These two functions below work perfectly for end to end normal user
interaction. But, I need help giving line 2 of the code "recipients =
User.where(id: params['recipients']) multiple user support. As in allow
User model to interact with BizUser model.
def create
recipients = User.where(id: pa
I had to turn on this function through the config file devise.rb.
[SOLVED]
--
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
I generated views/controllers for two user models upon installing
devise. For whatever reason, the views that are included inside of the
gem itself are being rendered instead of the ones that I added.
/views/users/registrations/new.html.erb
/views/bizusers/registrations/new.html.erb
Current route
Colin Law wrote in post #1166568:
> If I understand correctly then possibly you will want a join model
> called something like attendance where
> user has_many attendances
> user has_many events through attendances
>
> event has_many attendances
> event has_many users through attendances
>
> attend
Colin Law wrote in post #1166568:
> On 12 January 2015 at 21:40, David Williams
> wrote:
>> Right now,
>> my Event.rb
>> has belongs_to :activism_co_user
>
> What??
>
>> has_one :category
>>
>> Activism_co_user.rb
>> has_many :events
>&g
Colin Law wrote in post #1166563:
> On 12 January 2015 at 21:28, David Williams
> wrote:
>> unknown wrote in post #1166545:
>>> +1 for Pundit. I prefer it over CanCan these days, especially for your
>>> use-case.
>>>
>>> Jim
>>
>> Alr
I created a scaffold that has a controller and model for an activism
events feature where individual activism networks will post events for
their supporters to attend. Called EventsController and :events model
The events table has a laundry list of properties for the create method.
Right now, I'm
unknown wrote in post #1166545:
> +1 for Pundit. I prefer it over CanCan these days, especially for your
> use-case.
>
> Jim
Alright, I'll uninstall CanCan for Pundit. Thanks.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Group
I had to install the gem with openssl and also change my devkit path.
It's fixed now, thank.
--
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 em
Jason Fb wrote in post #1166396:
> On that note, I think cancan is cancancan now?
>
> (https://github.com/ryanb/cancan vs
> https://github.com/CanCanCommunity/cancancan)
>
> Does anyone know what happened there? I think Ryan Bates took a break or
> something?
>
> Jason Fleetwood-Boldt
> t...@datatr
I'm getting an exception error every time that I try to install this gem
gem 'puma'
Error that I'm receiving
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
C:/Ruby214/bin/ruby.exe extconf.rb
checking for SSL_CTX_new() in -lssl... no
checking for SSL_CTX_new() in -lssleay3
Colin Law wrote in post #1166335:
> On 8 January 2015 at 20:01, David Williams wrote:
>> I have two user models one for businesses and one for buyers. How would
>> I be able to restrict the create method only for businesses and allow
>> the show actions only for buyers?
&
I have two user models one for businesses and one for buyers. How would
I be able to restrict the create method only for businesses and allow
the show actions only for buyers?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
The documentation for the gem isn't very helpful in terms of what
controllers/views I need to create in order to get the actions to
respond appropriately.
>From the looks of the documentation on this
http://www.rubydoc.info/gems/inkwell/2.0.0 besides the community
component (I won't use it) Can yo
Jason Fb wrote in post #1165885:
>> On Jan 1, 2015, at 4:46 PM, David Williams wrote:
>>
>> I was told that adding the file to the assets.rb precompiler is really
>> no different than adding it to the application.js
>>
>
>
> That is not correct. Who told y
I was told that adding the file to the assets.rb precompiler is really
no different than adding it to the application.js
Rails.application.config.assets.precompile += %w(
backstretch-landing-index.js )
Even though this method isn't perfect, I'm still able to control which
views are being effec
1 - 100 of 131 matches
Mail list logo