Re: [Rails] Re: Is it possible without user_name & password Action mailer configuration in rails ?

2018-10-09 Thread Mike Simkins
, # might be 587 address: ‘mymailer.domain.com’ } > On 9 Oct 2018, at 10:01, Prasanth Balan wrote: > > Hi Mike, Thank you for your reply, > > We want to configure Redhat Linux and Sendmail / Postfix > > Please guide me how to configure via Postfix using my client mailer &

Re: [Rails] Re: Is it possible without user_name & password Action mailer configuration in rails ?

2018-10-09 Thread Mike Simkins
You need to expand on ‘AWS Server’ Do you mean a VM running Linux and Sendmail/Postfix?? Do you mean the AWS ‘Simple Email Service’(SES)?? or something else ?? All the configs are different so > On 8 Oct 2018, at 11:26, Prasanth Balan wrote: > > No, We're using AWS server, my client

[Rails] How to tell user the mailer SMTPAuthenticationError via another mail if the settings is failed?

2018-10-08 Thread Mike
You could in theory rescue the error, but if your mail system is not working, how do you send a mail to say it is not working! Ideally your application will send mails via its own user account, and therefore you can test the auth before deploying -- You received this message because you are

[Rails] Is it possible without user_name & password Action mailer configuration in rails ?

2018-10-08 Thread Mike
Yes it is, although that implies no security, still, if the mail host is internal that can be acceptable, if the mail host is on the Internet, it will still work, but once people find out about an unauthenticatedcserver it will be abused -- You received this message because you are subscribed

[Rails] OT: Rails and DDNS

2018-08-07 Thread Mike
Not sure I understand all of this but As long as you can send some-new-app.com to your IP address and some-old-app.com to the same address it should not be a problem You could use a CNAME record to forward both of these to myrouter.asuscomm.com which is your actual device Once it gets there I

[Rails] Postgres issue

2018-08-07 Thread Mike
Peer Authentication used your OS username and password for access, you may need to change pg_hba.conf and change instances of peer to md5. This also assumes that the user has been created correctly in the PostgreSQL system. It may also help to use the lines host: localhost port: 5432 In your

[Rails] Restricting a link to just admin users

2018-07-05 Thread Mike
It depends on how complex your permissions are, you could define a method in the user model called (for example) is_admin? That returns a Boolean, and then surround the links in a <% if current_user.is_admin? %> (Link here) <% end %> If your needs are a bit more complex then I would look at

[Rails] [ANN] loofah v2.2.0 released

2018-02-11 Thread Mike Dalessio
loofah version 2.2.0 has been released! * * * Loofah is a general library for manipulating and transforming HTML/XML documents and fragments. It's built on

Re: [Rails] I can't set the title of a page no matter what I have tried to put in my .html.erb file

2018-01-14 Thread Mike
app/views/layouts/application.html.erb is rendered around your code, and do in the example above your page title is Title15 if I remember correctly. If you want a dynamic page title you can put a line in the file such as <%= render(:header_title) %> in the head section of application.html.,

[Rails] [ANN] loofah 2.1.0 released

2017-09-24 Thread Mike Dalessio
loofah version 2.1.0 has been released! TL;DR: CSS property parsing and sanitization has been re-implemented on top of Crass: https://github.com/rgrove/crass replacing the regexes that were lifted from html5lib back in 2009. I'm relatively sure this is a good thing. Note that Loofah

[Rails] Delayed job not entering into the main jobs queue while using Resque-scheduler and redis

2017-05-04 Thread Mike
I don't understand what you mean by 'bringing it back to the main queue' You are explicitly putting it in a queue, but it sounds like you do not have a worker running to process that queue, if so the job will never execute You need to have a worker running for each queue name, can you check

[Rails] type missmatch - class expected, but got string

2017-03-29 Thread Mike Stefanskiy
Hi. You should use different names for association and for foreign key for this association. Looks like they are overlapping, just rename association name to fit ar conventions - and it should work. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:

[Rails] An application resource called Cables

2017-03-09 Thread Mike
If you are not using ActionCable then remove it from the gem files and initialisers -- 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

[Rails] Embed hyperlink in ERB

2017-02-23 Thread mike r
hello all, Im developing a ruby script (ruby 1.8.7) its a simple script to generate an email using an ERB my ERB has this JIRA ticket: [ <%= issue_key %> ] - <%= summary %> where issue_key is this, https://jira-server.com/api/rest/query/ABC-123 I was wondering if its possible to embed

[Rails] Re: are admins also users?

2017-02-22 Thread Mike
If you have a robust permissions system, you can also hide or show fields based on those permissions In short I would never use an 'admin' model there is simply no point for 99% of applications -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"

[Rails] are admins also users?

2017-02-22 Thread Mike
I never really liked this functionality of devise,. I normally make everyone a user, and the assign an 'admin' role in the same way as any other permission. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group

[Rails] Question on I18n locale

2017-01-26 Thread Mike
Don't use default_locale In ApplcationController do something like before_filter :set_user_locale def set_user_locale I18n.locale = params[:locale] if params[:locale] end -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To

[Rails] Weird warring on rails server startup

2017-01-20 Thread Mike
Ruby 2.4 is changing the way it handles integers, at the moment it is harmless but annoying, or you can roll back to use Ruby 2.3.3 -- 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

[Rails] [ANN] loofah-activerecord 2.0.0 Released

2016-11-22 Thread Mike Dalessio
loofah-activerecord version 2.0.0 has been released! * * * `loofah-activerecord` extends `loofah`'s HTML sanitization into Rails

[Rails] [JOBS] Sr. Ruby on Rails Engineer (Seattle Startup) FTE

2016-08-25 Thread mike . leggett
*Sr. Ruby on Rails Engineer * *Outreach* *https://outreach.io/* *Seattle - WA* *What We Do* Outreach is a communication platform built from the ground up to help people communicate more effectively. Today we focus on the sales organization, helping them engage with their prospects

Re: [Rails] Offline rails application

2016-07-29 Thread Mike
I doubt you can do that, you would need to have a local copy of the rails app running against a local database I would have thought, but that is probably not good for security On Friday, 29 July 2016 11:48:34 UTC+1, amitoj singh wrote: > > On Fri, Jul 29, 2016 at 2:28 PM, Mike &

Re: [Rails] Offline rails application

2016-07-29 Thread Mike
Reading the original post it sounds like the application is on the internet, but if the user is in a bad signal, or middle of the jungle area with no signal they still want the app to work. There is no way that this will really happen as the dynamic pages will still require a connection to

[Rails] Re: rails with postgresql

2016-04-10 Thread Mike
By default PostgreSQL listens on a local domain socket for security reasons, however, by adding the host: localhost line you are telling the PostgreSQL driver that you want to use TCP networking, and so it switches to TCP/IP connections on port 5432. The fact that use use localhost to connect

[Rails] How to get Rails Internal IP

2016-02-14 Thread Mike
If this is an application on the Internet, it is perfectly possible that you will see one IP, an most organisations traffic is natted these days I guess you could use some form of JavaScript trickery to retrieve information from the browser instance but not sure how accurate it would be

[Rails] Usual way for person data?

2016-01-29 Thread Mike
You probably should need to use some permission management system, such as cancancan or pundit, with a roles system such as rolify to control who can do what. In the majority of systems this is preferable to having an admin system and a user system (admins after all are only special users).

Re: [Rails] Re: Re: No route matches [POST] "/home/new"

2016-01-28 Thread Mike Simkins
ok Sent from my iPad > On 28 Jan 2016, at 01:48, Bob Tian <li...@ruby-forum.com> wrote: > > Mike S. wrote in post #1180984: >> In the delete link, you need to use the delete method-Rails now expects >> a delete verb, where as your code is generating a get I believe &g

Re: [Rails] Re: No route matches [POST] "/home/new"

2016-01-28 Thread Mike Simkins
So something is definitely broken in your Javascripts, or the views - the scaffold code there is what I am used to seeing, just referencing the record rather than the explicit ID you pass in. I am at a loss as to why Windows is complaining when you change the name, or indeed why it would not

Re: [Rails] Re: No route matches [POST] "/home/new"

2016-01-27 Thread Mike Simkins
In the delete link, you need to use the delete method-Rails now expects a delete verb, where as your code is generating a get I believe So > <%= link_to 'Delete', :controller => "people", :action > => "destroy", :id => e, :method => :delete %> Sent from my iPhone > On 27 Jan 2016, at 18:54,

[Rails] Online vs offline IDE

2016-01-27 Thread Mike
Both Rubymine and Aptana can be a bit slow / bloated, and they do have different feature levels (last time I looked). As they are both Java based you gain the benefit of the introspection which allows the intelligent completion of method name. The choice of an IDE is subjective, as is any

[Rails] Re: No route matches [POST] "/home/new"

2016-01-27 Thread Mike
You have an error in your controller You have @article.save in the create action, rather than @input.save Additionally it is convention to use the same name of the variable as the model, so you should really use @person = Person.new, rather than @input = Person.new You can always check what

Re: [Rails] Code to be run on server start up

2015-10-16 Thread Mike Witt
On 10/16/2015 09:30:15 AM, Mike Witt wrote: On 10/16/2015 09:21:44 AM, Hassan Schroeder wrote: On Fri, Oct 16, 2015 at 8:46 AM, Mike Witt <msg...@gmail.com> wrote: > In Rails 4.2, is there a place where I can put code that I want to be called > immediately after the rails serv

[Rails] Code to be run on server start up

2015-10-16 Thread Mike Witt
In Rails 4.2, is there a place where I can put code that I want to be called immediately after the rails server starts up (as opposed to when an HTTP request comes in). In other words, I want my code executed right after I do a "rails server" command or a "heroku restart." As one simple

Re: [Rails] Code to be run on server start up

2015-10-16 Thread Mike Witt
On 10/16/2015 09:21:44 AM, Hassan Schroeder wrote: On Fri, Oct 16, 2015 at 8:46 AM, Mike Witt <msg...@gmail.com> wrote: > In Rails 4.2, is there a place where I can put code that I want to be called > immediately after the rails server starts up Initializers are called *dur

[Rails] [ANN] loofah 2.1.0.rc1 released

2015-08-17 Thread Mike Dalessio
-in-rails-4-2/ Please provide feedback on this implementation here: https://github.com/flavorjones/loofah/issues/91 If I don't know of any blockers by 28 August 2015, I'll release 2.1.0 final based on this implementation. - mike @flavorjones * https://github.com/flavorjones/loofah

[Rails] Re: How import dump database sql in current project?

2015-07-10 Thread Mike
I just do it from the shell (command) prompt On Friday, 10 July 2015 09:16:38 UTC+1, Dmitriy wrote: import command running i in mysql console or whe? пятница, 10 июля 2015 г., 11:11:10 UTC+3 пользователь Mike написал: First run the migrations, so that Rails has the database in the situation

[Rails] Re: How import dump database sql in current project?

2015-07-10 Thread Mike
First run the migrations, so that Rails has the database in the situation that it thinks is right, then you can import the data (which I hope is in the same database format) To import the data, you should be able to use something like mysql -u username database database_dump.sql On Friday,

Re: [Rails] Re: Re: Re: Migrating a complete Ruby rails app off heroku!

2015-07-03 Thread Mike Simkins
So, this is all because of the Heroku Bamboo retirement (for which there was a years notice anyway) Bamboo had pre-installed gems that will be needed to be added to your Gemfile, with explicit versions Current secure (or semi secure anyway) gems will not target ruby 1.8.7 (Heroku actually used

[Rails] Re: Migrating a complete Ruby rails app off heroku!!!

2015-07-02 Thread Mike
Don't believe you can use preload_app! with Rails 2, by 1.87 Comment that out, and also the section about the worker.on_boot as I am fairly sure that won't work either On Tuesday, 30 June 2015 10:07:43 UTC+1, Rails Goa wrote: This is been driving me nuts for the last week. The requirement:

[Rails] Re: Need clarification on rails routes created when a controller is generated

2015-07-02 Thread Mike
You can always use the 'as' modifier get 'monthly_reciept/new', as: 'new_monthly_receipt' will give you the ability to use new_monthly_receipt_path On Thursday, 2 July 2015 03:50:32 UTC+1, Padmahas Bn wrote: I cannot find this in rails guides and rake routes doesn't show any helper for this

Re: [Rails] Re: SSL errors with open()

2015-06-13 Thread Mike Simkins
Agreed it will run, but it has obviously removed all the protection :) Very interested that it works in a browser however Sent from my iPhone On 12 Jun 2015, at 21:16, j...@via.net j...@via.net wrote: I updated the SSL certs as you suggested, I still get a failure. There is a workaround:

[Rails] Re: Reg:Ruby gem that will encrypt all the data in the database

2015-06-11 Thread Mike
There is attr_encrypted, which will do some stuff It depends why you want encryption to an extent, if you are worried about someone stealing the server, use disk encryption, if you are worried about a DBA stealing your data, you could try this gem, but anyone who had access to the (running)

[Rails] Re: SSL errors with open()

2015-06-11 Thread Mike
It is possible you do not have a fully up to date root certificate list, root certificates are stores in the browser, but OpenSSL uses its own directory Since you are using rvm on OS X by the look of it, so you may want to try the following command to see if this helps rvm osx-ssl-certs

[Rails] Re: ActionMailer `deliver_later`, retrieving job details

2015-06-11 Thread Mike
Depends on your queueing system for Active Job, most back ends provide job numbers and status If you are using the standard inline runner, then the details should be in your production log On Thursday, 11 June 2015 10:25:49 UTC+1, itsmechlark wrote: Hi, Is it possible to retrieve job

[Rails] Re: Ruby on rails Hosting / VPS

2015-06-08 Thread Mike
You can get offers on lowendbox.com, you can probably find something in Singapore or something for like $10-15 per month normally, but they can sometimes do better. Again, it is all relative, because bandwidth in APAC tends to be more costly than in Europe, or the USA, and because if the way

[Rails] Re: How to implement user role with user panel

2015-06-05 Thread Mike
So there was a Railscast that did an authentication system from scratch, and for a simple use case you can easily check if a user has a certain rule in a before_filter / before_action, but admittedly the gems are well tested, and peer reviewed, so is probably the best way to go. If you are

[Rails] Re: Is Rails 3.0 obsolete?

2015-06-05 Thread Mike
Liz, the point above about using RVM (or similar) is that you can install in your user account the latest versions of ruby and rails without issue, however, being a longish user of Dreamhost myself (although I dont host 'customer' websites there myself), because of their lack of official

[Rails] Re: Email preview in production in rails 4

2015-03-08 Thread Mike
You should not really do this as the whole point of the production environment is to be live and sending mails The content should not be different to your test or development environment so I am not sure what issue you think you are having However if you want to do this, then I would suggest

[Rails] Re: date_select - params ok but nil

2014-11-20 Thread Mike
You're using the f.label and date_select helpers. Try using f.date_select ? On Wednesday, November 19, 2014 2:40:50 PM UTC-8, der_tom wrote: hi, im kinda stuck... %= form_for(@event) do |f| % p %= f.label :from_date %br / %= date_select :event, :from_date % /p .

[Rails] Re: How to generate database.yml

2014-11-14 Thread Mike
Are you saying that for now, you want to use ActiveRecord as well as MySQL? You can change directory to your app's directory and run: $ rails new my-existing-app-name --database=mysql . It will try to generate all of the files and there will be conflicts. You can keep saying No to the overwrite

[Rails] How to present search criteria before displaying list?

2014-10-25 Thread mike . rood
this problem and where might I look for examples or demos? Thanks for any help you can give me. Regards, Mike -- 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

[Rails] Can't connect to localhost:3000

2014-10-14 Thread mike . rood
. Can anyone suggest how I might proceed from here? Regards, Mike -- 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...@googlegroups.com

[Rails] Re: Get the class name of the class who called the parent instance method.

2014-10-10 Thread Mike
You might want something like this. class Foo end Foo.instance_eval do def class_name self.name end end class Bar Foo end class Tar Foo end puts Foo.class_name #= Foo puts Bar.class_name #= Bar puts Tar.class_name #= Tar On Thursday, October 9, 2014 8:27:10 PM UTC-7,

[Rails] Weird gem issues

2014-08-09 Thread Mike Rood
:in `main' from /usr/local/rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval' from /usr/local/rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `main' I have uninstalled and reinstalled rake 10.3.2 several times. WTF? Any ideas? Regards, Mike -- You received this message

[Rails] SQL OR in RoR

2014-07-16 Thread Mike Oles
am I missing? Thanks Mike -- 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+unsubscr

[Rails] Re: SQL OR in RoR

2014-07-16 Thread Mike Oles
Thanks Eric. That did the trick. -- 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] Re: Rails website is down after a server reboot

2014-04-17 Thread Mike Villa
New migration? Check with the last engineer who checked in code. Might need to update ur database rake db:migrate. Someone who is familiar with or db should do that. Check with ur db admin first too Sent from my iPhone On Apr 17, 2014, at 7:45 AM, Ead dai2...@gmail.com wrote: Thank you so

Re: [Rails] Re: [Devise] redundant use of method: :delete while using destroy_user_session_path

2014-03-11 Thread mike
on (the other two are PUT and DELETE). If you do as you suggest and have the following statement: %= link_to my example, product_path(1) % There would be no way the program could assign a method from the routes.db file since it would have four to choose from. mike -- You received this message

[Rails] Re: Problem with installing gems and run server (weird, the project run so well yesterday)

2014-03-10 Thread mike
On Monday, March 10, 2014 2:46:14 PM UTC-4, Fernando Segura Gòmez wrote: Good afternoon Excuse me, i have a problem with rails 4.0.0, i've been working with this framework for the last 4 months, without any problem or issue, but now when i try to run one server on windows so, a project

[Rails] Re: rails with mongodb

2014-03-09 Thread mike
On Sunday, March 9, 2014 1:26:02 AM UTC-5, Ruby-Forum.com User wrote: Hello viewers .. I'm Doing a project on rails with mongoDB as a backend database. When we learn a new programming language we start with writing a helloworld program . In the same way if we want to work with a web

[Rails] Re: [Devise] redundant use of method: :delete while using destroy_user_session_path

2014-03-09 Thread mike
On Saturday, March 8, 2014 9:32:04 AM UTC-5, Arun kant sharma wrote: While using devise I have to use %li= link_to Sign up, destroy_user_session_path, method: :delete now that destroy_user_session_path should automatically default to delete method because that's how it is defined in

[Rails] Re: Rails 4 Join table query not working

2014-03-09 Thread mike
On Saturday, March 8, 2014 5:52:41 PM UTC-5, Ruby-Forum.com User wrote: Commented out #include Sprockets::Helpers::RailsHelper #include Sprockets::Helpers::IsolatedHelper in image uploader and solved current problem... for now anyway. Dave -- Posted via

Re: [Rails] syntax: render partial: account

2014-03-07 Thread mike
On Friday, March 7, 2014 1:27:41 PM UTC-5, Jedrin wrote: this isn't valid syntax because of the colon at the end of 'something' my_var = something: this is not valid key: 'car' If there is some shorthand or special case I do not understand On Friday, March 7, 2014 1:07:47 PM

Re: [Rails] Rails AJAX slow compared to Node.js and websockets complex to implement in rails ?

2014-03-06 Thread mike
On Thursday, March 6, 2014 5:58:23 AM UTC-5, Andreas Wenk wrote: just some bikeshedding ... sry - your answers are all very good! On Wednesday, March 5, 2014 6:40:16 PM UTC+1, mike wrote: By default, if you run this in Ruby, you will get what you expect. It will open the file

[Rails] Re: Post requests exercised as a Get

2014-03-06 Thread mike
On Wednesday, March 5, 2014 4:28:54 PM UTC-5, Ruby-Forum.com User wrote: Hello, I've been stuck on an issue for a few days now and I haven't been able to find any help online (asked multiple questions on stackoverflow). I'm not sure what to do anymore. Basically, I have a model

Re: [Rails] Rails AJAX slow compared to Node.js and websockets complex to implement in rails ?

2014-03-05 Thread mike
On Sunday, March 2, 2014 7:49:44 AM UTC-5, Gurpreet Luthra wrote: Have you read this: http://greenash.net.au/thoughts/2012/11/nodejs-itself-is-blocking-only-its-io-is-non-blocking/ Its about having a non-blocking system which helps in increasing speed of execution.. it not about the

[Rails] Re: Making sure the Admin of a website is not deleted

2014-03-04 Thread mike
On Tuesday, March 4, 2014 2:54:38 PM UTC-5, Ruby-Forum.com User wrote: Hi, Thank you for your reply. I only have one admin on the website as shown below (code taken from seeds.rb). User.create(:name = weds4u, :password = w, :password_confirmation = w, :role = 'admin')

[Rails] Re: how do you keep up to date on gems ?

2014-03-02 Thread mike
On Saturday, March 1, 2014 3:18:39 PM UTC-5, Jedrin wrote: I was asked an interview question on how I would keep an app's gems up to date. Suppose there was a new gem because of some security issue for instance ? Where I worked before, we locked the gems in the gem file with a

[Rails] Re: OT: buying a Mac computer

2014-02-26 Thread mike
On Tuesday, February 25, 2014 5:00:14 PM UTC-5, Jason Hsu, Rubyist wrote: I realize this is off-topic, but I understand that an overwhelming majority of Rubyists use Mac computers and not PCs. I currently use Linux-powered PCs. Yes, I ditched Windows years ago just like many of you.

[Rails] Re: Advanced ActiveRecord tutorials

2014-02-26 Thread mike
On Monday, February 24, 2014 5:10:10 AM UTC-5, Ganesh Ranganathan wrote: Any recommendations for good advanced tutorials on ActiveRecord in Rails4? I'm interested in joins, group, counts especially for deep associations. Thanks, Ganesh It's not really a tutorial, but if you really

[Rails] Re: mobile app JSON calls to controller

2014-02-26 Thread mike
On Tuesday, February 25, 2014 6:43:52 AM UTC-5, Brandon wrote: Hi, I've controller methods which my mobile app calls to retrieve JSON. I'm curious what is the best practice in naming mobile methods? Do I put all the mobile calls into a new controller? Right now I'm only prependng

[Rails] Re: How to know which gem version to install (Rails 3.2)

2014-01-17 Thread mike alex
Hi Frederick, I mean if I use a gem I don't know if putting gem 'gemane' will cause problems because the newest version of the gem only works with rails 4. I'm worried I start using gems and the newest version only works on rails 4 and it causes issues that I can't figure out. Thanks James!

[Rails] How to know which gem version to install (Rails 3.2)

2014-01-14 Thread mike alexander
I'm using Rails 3.2 and when I'm on github I'm not sure where I can find the correct version to install for rails 3.2. I'm sure it's simple but I can't figure it out. For example, Rails_Admin didn't put the css files in the correct place and I think the reason was because of the incorrect version.

[Rails] Re: What Gives? If Rails is so good why is it so hard to install it?

2013-12-26 Thread mike
On Wednesday, December 25, 2013 5:43:20 PM UTC-5, Dan Boyle wrote: I have spent hours trying to get some version of Rails installed and all to no avail. It seems there are many people who get the same errors but nobody seems to have any answers. I am new to both Rails and Ubuntu. This

[Rails] Looking for iPad app developer

2013-11-11 Thread Mike Taylor
*Can YOU provide the following?* iPad app design + 3 to 6 page companion web site Fast feedback Top talent ONLY, clear instructions Mockup provided Needs your skills and speed reply if interested, I'll send mockup -- You received this message because you are subscribed to the Google Groups

[Rails] New Application, iTunes like application, MVC architecture

2013-10-09 Thread Mike Adeleke
Hey guys! I am a little new and developing a new lightweight application and am curious about my structure. I want users to add songs and also be able to make playlists. If they so choose, the songs in the library can move to a playlist. Then the songs library can be searchable. So I thought

[Rails] Re: Problem with ruby on rails

2013-07-29 Thread mike
On Monday, July 29, 2013 2:15:38 PM UTC-4, Ruby-Forum.com User wrote: I was working on this rails tutorial: http://guides.rubyon...ng_started.html; and than I got to the part that you are supposed to show the title and data for an individual post (5.7) and got an error when it was

[Rails] Re: My Weird error

2013-07-24 Thread mike
On Tuesday, July 23, 2013 7:47:41 PM UTC-4, João Pereira wrote: Hi, I'm getting this error while deploying to a dev machine with cap:deploy executing cd -- /home/ubuntu/deployments/ appreleases/20130723233947 RAILS_ENV=production RAILS_GROUPS=assets rake assets:precompile

[Rails] Re: Understating how assets in Rails 4 work in production

2013-07-21 Thread mike
On Saturday, July 20, 2013 8:29:42 PM UTC-4, João Pereira wrote: When I run rake assets:precompile The compiled assets are written to pubic/assets: I, [2013-07-21T02:16:00.987988 #13881] INFO -- : Writing

[Rails] Re: Asset Pipeline: Asset attempted to compress while creating page response not during asset request

2013-07-12 Thread mike
2013 21:58:03 UTC+5:30, mike wrote: On Thursday, July 11, 2013 7:24:34 AM UTC-4, farukhdm wrote: Hi, I am stuck in a weird situation where in my production environment, an asset is being attempted to compress while rendering a view. I've all my assets put into public/assets folder via rake

Re: [Rails] Isn't twitter bootstrap for amateurish front end work ?

2013-07-12 Thread mike
On Friday, July 12, 2013 11:45:34 AM UTC-4, just-a-noob wrote: Front end guys, especially front-end ninjas mostly don't use CSS framework such as bootstrap and foundation, because they don't want any limitation on their UI/UX design, for example button element design on frameworks looks

[Rails] Re: Asset Pipeline: Asset attempted to compress while creating page response not during asset request

2013-07-11 Thread mike
On Thursday, July 11, 2013 7:24:34 AM UTC-4, farukhdm wrote: Hi, I am stuck in a weird situation where in my production environment, an asset is being attempted to compress while rendering a view. I've all my assets put into public/assets folder via rake assets:precompile

Re: [Rails] Re: Devise routes

2013-07-10 Thread mike
On Tuesday, July 9, 2013 4:18:23 PM UTC-4, Colin Law wrote: On 9 July 2013 06:42, mack gille li...@ruby-forum.com javascript: wrote: yes mike,but when we need to authenticate the devise models,how to write the scope for two devises in routes. means if user and admin are two devise

Re: [Rails] Re: how to add name field to devise controller

2013-07-08 Thread mike
On Monday, July 8, 2013 8:31:01 AM UTC-4, Colin Law wrote: On 8 July 2013 13:27, mack gille li...@ruby-forum.com javascript: wrote: Colin Law wrote in post #1114719: On 8 July 2013 10:52, mack gille li...@ruby-forum.com javascript: wrote: hi all, how to add name field to

[Rails] Re: Devise routes

2013-07-08 Thread mike
On Monday, July 8, 2013 4:05:36 AM UTC-4, Ruby-Forum.com User wrote: hi... i am using two devises in rails 4 application,i need the routes for those devises. rails 4 is new feature for routes -- Posted via http://www.ruby-forum.com/. I'm having trouble understanding the

[Rails] Re: Rails ERD - Help with model

2013-06-10 Thread mike
On Monday, June 10, 2013 4:39:16 AM UTC-4, Ruby-Forum.com User wrote: Hello i have some errors in generating ERD from models.. I guess i have wrong associations.. please look at it [DB] orders -- payment_address_id delivery_address_id user_id products_orders

[Rails] Re: Version issue with First App in Hartl Tutorial

2013-06-09 Thread mike
On Saturday, October 13, 2012 10:47:44 AM UTC-4, Tim Escher wrote: Stepping through the Hartl Rails 3 Tutorial from the 2nd edition book hot off the presses. Modified the Gemfile *exactly* as specified in the book, immediately got version issues: Could not find gem 'jquery-rails (=

[Rails] Re: Precompile with compression in development

2013-06-05 Thread mike
On Wednesday, June 5, 2013 4:58:16 AM UTC-4, Michael Kastner wrote: Hi, I'd like to do precompilation with compression in development mode. I've set config.assets.js_compressor = :uglifier config.assets.css_compressor = :sass in development.rb. But compression only seems to work in

[Rails] Re: What is a low level caching in Rails in terms of SQL Caching?

2013-06-04 Thread mike
On Tuesday, June 4, 2013 10:33:49 AM UTC-4, Ruby-Forum.com User wrote: In the Rails Guides about caching there is an explanation: However, it’s important to note that query caches are created at the start of an action and destroyed at the end of that action and thus persist only for the

[Rails] Re: Can't setup Rails with RVM in ubuntu 12.04

2013-05-29 Thread mike
On Wednesday, May 29, 2013 8:55:07 AM UTC-4, Ruby-Forum.com User wrote: I'm doing setu Ruby on Rails with RVM. I had setup ruby 1.9.3 p429 and RVM,RubyGem... succesfully But I can't setup Rails with command : gem install rails because of error: ERROR: While executing gem ...

[Rails] Re: Why can't get remote javascript libraries on Rails 4

2013-05-29 Thread mike
On Wednesday, May 29, 2013 1:33:31 PM UTC-4, Alberto Pat Martínez wrote: In rails 3, I included this line: *%= javascript_include_tag http://cdn.leafletjs.com/leaflet-0.5.1/leaflet.js; %* But when migrate to rails 4, its not posible and I get the next error: *Invalid argument -

[Rails] Re: Should Customers and Admins be on Separate Tables?

2013-05-27 Thread mike
On Friday, May 24, 2013 10:55:53 PM UTC-4, Peter wrote: Can I please get everyone's opinion? Should customers and admins be on separate tables? I'm developing an application that has two kinds of users, a customer and an administrator. The application basically is a shopping cart.

[Rails] Re: No rake db:test:* commands in my Rails rake. Where may I find all missing rake commands?

2013-05-26 Thread mike
On Sunday, May 26, 2013 2:47:38 PM UTC-4, Ruby-Forum.com User wrote: In Rails Guides ( http://guides.rubyonrails.org/testing.html#preparing-your-application-for-testing) they mention some rake db:test:load command and other rake db:test:* commands. But when I do rake -D db or rake -T

[Rails] Re: How to get rid of blank spaces in templates rendered by Rails 3.2.13 ERB/Erubis?

2013-05-24 Thread mike
On Friday, May 24, 2013 8:53:38 AM UTC-4, A B wrote: Whatever I do I get a response page rendered like this: https://lh3.googleusercontent.com/-G9KpqL6QGKE/UZ9afeLuFpI/ABk/r5rITlX-kzc/s1600/rails_render.png Every page is rendered with blank spaces. Even if I put HTML and ERB tags

[Rails] Re: First capistrano deploy question

2013-05-23 Thread mike
On Wednesday, May 22, 2013 1:26:06 PM UTC-4, Alfred Nutile wrote: Seems like it went well. The site is there. And when I do an update and push to it with git and run cap deploy again I can see my edits in a file on the server but not on the webpage. For example if I go into the folder

Re: [Rails] Re: Help needed - No route matches [GET] /draw/load

2013-05-21 Thread mike
On Tuesday, May 21, 2013 1:35:37 AM UTC-4, tamouse wrote: On Tue, May 21, 2013 at 12:01 AM, Rochit Sen li...@ruby-forum.comjavascript: wrote: Rochit Sen wrote in post #1109638: mike wrote in post #1109637: On Monday, May 20, 2013 1:26:20 PM UTC-4, Ruby-Forum.com User wrote

Re: [Rails] Re: Help needed - No route matches [GET] /draw/load

2013-05-21 Thread mike
On Tuesday, May 21, 2013 1:35:37 AM UTC-4, tamouse wrote: On Tue, May 21, 2013 at 12:01 AM, Rochit Sen li...@ruby-forum.comjavascript: wrote: Rochit Sen wrote in post #1109638: mike wrote in post #1109637: On Monday, May 20, 2013 1:26:20 PM UTC-4, Ruby-Forum.com User wrote

[Rails] Re: acts_as_list crashes with non-numeric id

2013-05-21 Thread mike
On Monday, May 20, 2013 11:19:40 PM UTC-4, Ruby-Forum.com User wrote: Robert Walker wrote in post #1109609: For future reference this is one of those times that fighting Rails conventions makes your life more difficult as a Rails developer. I've done quite a few apps with non-numeric

[Rails] Re: Help needed - No route matches [GET] /draw/load

2013-05-20 Thread mike
On Monday, May 20, 2013 1:26:20 PM UTC-4, Ruby-Forum.com User wrote: Hi All, I am new to Rails. I installed rails 3.2.13. Have Ruby ver. 1.9.2p20. I created a very simple rails example as follows. 1. Created rails app called chart 2. Generated a controller called - draw that has the

Re: [Rails] Re: Re: Re: Ruby on Rails guidence need

2013-05-17 Thread mike
On Thursday, May 16, 2013 4:41:01 PM UTC-4, Colin Law wrote: On 16 May 2013 21:35, Love U Ruby li...@ruby-forum.com javascript: wrote: Colin Law wrote in post #1109259: On 16 May 2013 18:50, Love U Ruby li...@ruby-forum.com javascript: wrote: then why I got the error: I did say

[Rails] Re: manual vs automatic bundler deployment with capistrano

2013-05-15 Thread mike
On Tuesday, May 14, 2013 2:06:20 PM UTC-4, John Merlino wrote: I assume this is the most up to date documentation for running bundler install when deploying a rails application with capistrano: http://gembundler.com/v1.3/deploying.html In the documentation, it offers two methods for

  1   2   3   4   5   6   >